CONOPT
Loading...
Searching...
No Matches
largebnd.TutModelData Class Reference

Public Member Functions

 __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
 

Data Fields

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, 1.0e20, 0.5)
 
 varinp = self.addVariable(0.1, 1.0e21, 0.5)
 
 varout = self.addVariable(0.0, 1.0e22)
 
 varp = self.addVariable(0.0, 1.0e23)
 
 consobj
 
 consprod
 

Detailed Description

Definition at line 17 of file largebnd.py.

Constructor & Destructor Documentation

◆ __init__()

largebnd.TutModelData.__init__ ( self)

Definition at line 18 of file largebnd.py.

Field Documentation

◆ Al

float largebnd.TutModelData.Al = 0.16

Definition at line 19 of file largebnd.py.

◆ Ak

float largebnd.TutModelData.Ak = 2.0

Definition at line 20 of file largebnd.py.

◆ Ainp

float largebnd.TutModelData.Ainp = 0.16

Definition at line 21 of file largebnd.py.

◆ Rho

float largebnd.TutModelData.Rho = 1.0

Definition at line 22 of file largebnd.py.

◆ K

float largebnd.TutModelData.K = 4.0

Definition at line 23 of file largebnd.py.

◆ varl

largebnd.TutModelData.varl = self.addVariable(0.1, 1.0e20, 0.5)

Definition at line 32 of file largebnd.py.

◆ varinp

largebnd.TutModelData.varinp = self.addVariable(0.1, 1.0e21, 0.5)

Definition at line 33 of file largebnd.py.

◆ varout

largebnd.TutModelData.varout = self.addVariable(0.0, 1.0e22)

Definition at line 34 of file largebnd.py.

◆ varp

largebnd.TutModelData.varp = self.addVariable(0.0, 1.0e23)

Definition at line 35 of file largebnd.py.

◆ consobj

largebnd.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 38 of file largebnd.py.

◆ consprod

largebnd.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 45 of file largebnd.py.


The documentation for this class was generated from the following file: