Class attribute.


Query and set bounds of the optimization variables. The bounds() method is an indexed property, meaning getting and setting this property requires an index and calls this function. The power index (elements are separated by commas) must contain atleast the following elements:

order index name valid options
1 bound type lower and upper
2 variable type _x, _u and _z (and _p_est for MHE)
3 variable name Names defined in do_mpc.model.Model.

Further indices are possible (but not neccessary) when the referenced variable is a vector or matrix.


# Set with:
optimizer.bounds['lower','_x', 'phi_1'] = -2*np.pi
optimizer.bounds['upper','_x', 'phi_1'] = 2*np.pi

# Query with:
optimizer.bounds['lower','_x', 'phi_1']

This page is auto-generated. Page source is not available on Github.