|
| | __init__ (self) |
| |
| | buildModel (self) |
| | adding the variables and constraints to the model
|
| |
| | initFDEvaluation (self, x, rowlist, mode, numthread, ignerr) |
| | callback method for initialising the first derivative evaluation.
|
| |
| | 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
|
| |
|
| int | L = 0 |
| |
| int | Inp = 0 |
| |
| int | Out = 0 |
| |
| int | P = 0 |
| |
| float | Al = 0.16 |
| |
| float | Ak = 2.0 |
| |
| float | Ainp = 0.16 |
| |
| float | Rho = 1.0 |
| |
| float | K = 4.0 |
| |
| list | hold = [0, 0, 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 |
| |
| tuple | hold1 |
| |
| | hold2 = pow(self.hold1, (-1.0 / self.Rho)) |
| |
| tuple | hold3 = self.hold2 / self.hold1 |
| |
Definition at line 17 of file tutoriali.py.
◆ __init__()
| tutoriali.TutModelData.__init__ |
( |
| self | ) |
|
| tutoriali.TutModelData.L = 0 |
◆ Inp
| tutoriali.TutModelData.Inp = 0 |
◆ Out
| tutoriali.TutModelData.Out = 0 |
| tutoriali.TutModelData.P = 0 |
◆ Al
| float tutoriali.TutModelData.Al = 0.16 |
◆ Ak
| float tutoriali.TutModelData.Ak = 2.0 |
◆ Ainp
| float tutoriali.TutModelData.Ainp = 0.16 |
◆ Rho
| float tutoriali.TutModelData.Rho = 1.0 |
| float tutoriali.TutModelData.K = 4.0 |
◆ hold
| list tutoriali.TutModelData.hold = [0, 0, 0] |
◆ varl
| tutoriali.TutModelData.varl = self.addVariable(0.1, co.Conopt.Infinity, 0.5) |
◆ varinp
| tutoriali.TutModelData.varinp = self.addVariable(0.1, co.Conopt.Infinity, 0.5) |
◆ varout
| tutoriali.TutModelData.varout = self.addVariable(0.0, co.Conopt.Infinity) |
◆ varp
| tutoriali.TutModelData.varp = self.addVariable(0.0, co.Conopt.Infinity) |
◆ consobj
| tutoriali.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 47 of file tutoriali.py.
◆ consprod
| tutoriali.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 54 of file tutoriali.py.
◆ hold1
| tuple tutoriali.TutModelData.hold1 |
Initial value:= (
self.Al * pow(self.L, (-self.Rho))
+ self.Ak * pow(self.K, (-self.Rho))
+ self.Ainp * pow(self.Inp, (-self.Rho))
)
Definition at line 81 of file tutoriali.py.
◆ hold2
| tutoriali.TutModelData.hold2 = pow(self.hold1, (-1.0 / self.Rho)) |
◆ hold3
| tuple tutoriali.TutModelData.hold3 = self.hold2 / self.hold1 |
The documentation for this class was generated from the following file:
- /builds/devel/conopt/conopt/examples/Python_1thread/tutoriali.py