ams.opt.optzbase.OptzBase#
- class ams.opt.optzbase.OptzBase(name: str | None = None, info: str | None = None, unit: str | None = None, model: str | None = None)[source]#
Base class for optimization elements. Ensure that symbols are generated before calling the parse method. Parsing before symbol generation can lead to incorrect results.
- Parameters:
- namestr, optional
Name of the optimization element.
- infostr, optional
Descriptive information about the optimization element.
- unitstr, optional
Unit of measurement for the optimization element.
- Attributes:
- rtnams.routines.Routine
The owner routine instance.
- __init__(name: str | None = None, info: str | None = None, unit: str | None = None, model: str | None = None)[source]#
Methods
Attributes
Return the class name
Return the calculated numerical value of the underlying expression.
Where the live CVXPY object for this item came from.
Return the number of elements.
Return the shape.
Return the size.