ams.opt.omodel.OptzBase#
- class ams.opt.omodel.OptzBase(name: str | None = None, info: str | None = None, unit: str | None = None)[source]#
Base class for optimization elements, e.g., Var and Constraint.
- Parameters:
- namestr, optional
Name.
- infostr, optional
Descriptive information
- Attributes:
- rtnams.routines.Routine
The owner routine instance.
Methods
parse
()Parse the object.
Attributes
Return the class name
Return the number of elements.
Return the shape.
Return the size.