|
| | __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.
|
| |
| | __init__ (self) |
| |
| | buildModel (self) |
| | adding the variables and constraints to the model
|
| |
| | tapeFunction (self, x, rowno) |
| | evaluates the nonlinear function and records a tape is necessary
|
| |
| | initialiseAutoDiff (self) |
| | initialises the automatic differentiation
|
| |
| | evaluateNonlinearTerm (self, x, rowno, ignerr, thread) |
| |
| | evaluateNonlinearJacobian (self, x, rowno, jacnum, ignerr, thread) |
| |
| | evaluateSDLagrangian (self, x, u, hessianrow, hessiancol) |
| |
|
| 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, 0.5) |
| |
| | varinp = self.addVariable(0.1, co.Conopt.Infinity, 0.5) |
| |
| | varout = self.addVariable(0.0, co.Conopt.Infinity) |
| |
| | varp = self.addVariable(0.0, co.Conopt.Infinity) |
| |
| | consobj |
| |
| | consprod |
| |
Definition at line 17 of file tutorial2.py.
◆ __init__() [1/2]
| tutorial2.TutModelData.__init__ |
( |
| self | ) |
|
◆ __init__() [2/2]
| tutorial2.TutModelData.__init__ |
( |
| self | ) |
|
◆ Al
| float tutorial2.TutModelData.Al = 0.16 |
◆ Ak
| float tutorial2.TutModelData.Ak = 2.0 |
◆ Ainp
| float tutorial2.TutModelData.Ainp = 0.16 |
◆ Rho
| float tutorial2.TutModelData.Rho = 1.0 |
| float tutorial2.TutModelData.K = 4.0 |
◆ varl
| tutorial2.TutModelData.varl = self.addVariable(0.1, co.Conopt.Infinity, 0.5) |
◆ varinp
| tutorial2.TutModelData.varinp = self.addVariable(0.1, co.Conopt.Infinity, 0.5) |
◆ varout
| tutorial2.TutModelData.varout = self.addVariable(0.0, co.Conopt.Infinity) |
◆ varp
| tutorial2.TutModelData.varp = self.addVariable(0.0, co.Conopt.Infinity) |
◆ consobj
| tutorial2.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 40 of file tutorial2.py.
◆ consprod
| tutorial2.TutModelData.consprod |
Initial value:= self.addConstraint(
co.ConstraintType_Eq,
0.0,
[self.varl, self.varinp, self.varout],
[0, 0, -1],
[1, 1, 0],
)
Definition at line 47 of file tutorial2.py.
The documentation for this class was generated from the following files:
- /builds/devel/conopt/conopt/examples/Python_1thread/tutorial2.py
- /builds/devel/conopt/conopt/examples/AD/Python_1thread/tutorial2.py