docplex.mp.basic module¶
-
class
docplex.mp.basic.
Expr
[source]¶ Bases:
docplex.mp.basic.ModelingObjectBase
,docplex.mp.operand.Operand
Parent class for all expression classes.
-
class
docplex.mp.basic.
ModelingObjectBase
[source]¶ Bases:
object
Parent class for all modeling objects (variables and constraints).
This class is not intended to be instantiated directly.
-
has_user_name
()[source]¶ Checks whether the object has a valid name given by the user.
Returns: True if the object has a valid name given by the user.
-
model
¶ This property returns the
docplex.mp.model.Model
to which the object belongs.
-
name
¶ This property is used to get or set the name of the modeling object.
-