save

Class method.

save(self, path)

Saving the constraints to a given file with dill.

The path can be absolut or relative and the ending of the file is arbitrary.

Parameters:

path (str) – String defining the path to the desired file.

For example

>>> constraints.save('constraints.pickle')

will create a file constraints.pickle containing the nMPyC constraints object.