Types

class optimix.types.Scalar(value)

Scalar variable type.

It holds a float64 value, listen to changes, and fix or unfix its value.

Parameters:value (float) – initial value.
asarray()

Return a numpy.ndarray representation.

copy()

Return a copy.

fix()

Set it fixed.

isfixed

Return whether it is fixed or not.

listen(you)

Request a callback for value modification.

Parameters:you (object) – an instance having __call__ attribute.
shape

Shape according to numpy.

size

Size according to numpy.

unfix()

Set it unfixed.

class optimix.types.Vector(value)

Vector variable type.

It holds an array of float64 values, listen to changes, and fix or unfix its values.

Parameters:value (float) – initial value.
asarray()

Return a numpy.ndarray representation.

copy()

Return a copy.

fix()

Set it fixed.

isfixed

Return whether it is fixed or not.

listen(you)

Request a callback for value modification.

Parameters:you (object) – an instance having __call__ attribute.
shape

Shape according to numpy.

size

Size according to numpy.

unfix()

Set it unfixed.