|
| | __init__ (self) |
| |
| | buildModel (self) |
| | adding the variables and constraints to the model
|
| |
| | evaluateNonlinearTerm (self, x, rowno, ignerr, thread) |
| | callback method for evaluating the nonlinear terms in a given row
|
| |
| | evaluateNonlinearJacobian (self, x, rowno, jacnum, ignerr, thread) |
| | callback method for evaluating the jacobian for the nonlinear terms in a given row
|
| |
|
| | x0 = self.addVariable(-co.Conopt.Infinity, co.Conopt.Infinity, 5.0) |
| |
| | x1 = self.addVariable(-co.Conopt.Infinity, co.Conopt.Infinity, 5.0) |
| |
| | cons1 |
| |
| | cons2 |
| |
| | cons3 |
| |
Definition at line 17 of file square3.py.
◆ __init__()
| square3.SquareModelData.__init__ |
( |
| self | ) |
|
◆ x0
| square3.SquareModelData.x0 = self.addVariable(-co.Conopt.Infinity, co.Conopt.Infinity, 5.0) |
◆ x1
| square3.SquareModelData.x1 = self.addVariable(-co.Conopt.Infinity, co.Conopt.Infinity, 5.0) |
◆ cons1
| square3.SquareModelData.cons1 |
Initial value:= self.addConstraint(
co.ConstraintType_Eq, 10.0, [self.x0, self.x1], [1, 1], [0, 0]
)
Definition at line 34 of file square3.py.
◆ cons2
| square3.SquareModelData.cons2 |
Initial value:= self.addConstraint(
co.ConstraintType_Eq, 0.0, [self.x0, self.x1], [0, 0], [1, 1]
)
Definition at line 37 of file square3.py.
◆ cons3
| square3.SquareModelData.cons3 |
Initial value:= self.addConstraint(
co.ConstraintType_LtEq, 9.0, [self.x0, self.x1], [0, 0], [1, 1]
)
Definition at line 40 of file square3.py.
The documentation for this class was generated from the following file:
- /builds/devel/conopt/conopt/examples/Python_1thread/square3.py