- class mindoptpy.MdoExprLinear¶
This object implements the data structure to hold a linear constraint expression object, which consists of a set of coefficient-variable pairs.
Typical steps to input a linear constraint expression are:
This is a temporary object with a short lifespan in general.
In general, overloaded operators such as
+are less efficient and thus shall be avoided in a loop. Note taht the most efficient way to build an expression object is to call
MdoVar x1 =