|
| | __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
|
| |
| | evaluateSDLagrangian (self, x, u, hessianrow, hessiancol) |
| | Computes and returns the numerical values of the Lagrangian of the Hessian.
|
| |
|
| float | Al = 0.16 |
| |
| float | Ak = 2.0 |
| |
| float | Ainp = 0.16 |
| |
| float | Rho = 1.0 |
| |
| float | K = 4.0 |
| |
| | varl = self.addVariable(0.1, co.Conopt.Infinity, initL) |
| |
| | varinp = self.addVariable(0.1, co.Conopt.Infinity, initInp) |
| |
| | varout = self.addVariable(0.0, co.Conopt.Infinity) |
| |
| | varp = self.addVariable(0.0, co.Conopt.Infinity) |
| |
| | varint |
| |
| | consobj |
| |
| | consprod |
| |
| | consnew |
| |
Definition at line 17 of file tutorial2r.py.
◆ __init__()
| tutorial2r.TutModelData.__init__ |
( |
| self | ) |
|
◆ Al
| float tutorial2r.TutModelData.Al = 0.16 |
◆ Ak
| float tutorial2r.TutModelData.Ak = 2.0 |
◆ Ainp
| float tutorial2r.TutModelData.Ainp = 0.16 |
◆ Rho
| tutorial2r.TutModelData.Rho = 1.0 |
| float tutorial2r.TutModelData.K = 4.0 |
◆ varl
| tutorial2r.TutModelData.varl = self.addVariable(0.1, co.Conopt.Infinity, initL) |
◆ varinp
| tutorial2r.TutModelData.varinp = self.addVariable(0.1, co.Conopt.Infinity, initInp) |
◆ varout
| tutorial2r.TutModelData.varout = self.addVariable(0.0, co.Conopt.Infinity) |
◆ varp
| tutorial2r.TutModelData.varp = self.addVariable(0.0, co.Conopt.Infinity) |
◆ varint
| tutorial2r.TutModelData.varint |
Initial value:= self.addVariable(
0.0,
co.Conopt.Infinity,
self.Al * pow(initL, -self.Rho)
+ self.Ak * pow(self.K, -self.Rho)
+ self.Ainp * pow(initInp, -self.Rho),
)
Definition at line 42 of file tutorial2r.py.
◆ consobj
| tutorial2r.TutModelData.consobj |
Initial value:= self.addConstraint(
co.ConstraintType_Free,
-0.1,
[self.varl, self.varinp, self.varout, self.varp],
[-1, -1, 0, 0],
[0, 0, 1, 1],
)
Definition at line 51 of file tutorial2r.py.
◆ consprod
| tutorial2r.TutModelData.consprod |
Initial value:= self.addConstraint(
co.ConstraintType_Eq,
0.0,
[self.varl, self.varinp, self.varint],
[0, 0, -1],
[1, 1, 0],
)
Definition at line 58 of file tutorial2r.py.
◆ consnew
| tutorial2r.TutModelData.consnew |
Initial value:= self.addConstraint(
co.ConstraintType_Eq,
0.0,
[self.varout, self.varint],
[-1, 0],
[0, 1],
)
Definition at line 68 of file tutorial2r.py.
The documentation for this class was generated from the following file:
- /builds/devel/conopt/conopt/examples/Python_1thread/tutorial2r.py