CONOPT
Loading...
Searching...
No Matches

Functions

 tutorial2str.TutModelData.buildModel (self)
 adding the variables and constraints to the model
 
 tutorial2str.TutModelData.tapeFunction (self, x, rowno)
 evaluates the nonlinear function and records a tape is necessary
 
 tutorial2str.TutModelData.initialiseAutoDiff (self)
 initialises the automatic differentiation
 
 tutorial2str.TutModelData.computeHessianStructure (self)
 uses the automatic differentiation methods to compute the Hessian structure
 
 tutorial2str.TutModelData.evaluateNonlinearTerm (self, x, rowno, ignerr, thread)
 
 tutorial2str.TutModelData.evaluateNonlinearJacobian (self, x, rowno, jacnum, ignerr, thread)
 
 tutorial2str.TutModelData.evaluateSDLagrangian (self, x, u, hessianrow, hessiancol)
 

Detailed Description

this extends the tutorial by including the computation of the structure of the Hessian and the value of the Lagrangian of the Hessian.

Function Documentation

◆ buildModel()

tutorial2str.TutModelData.buildModel ( self)

adding the variables and constraints to the model

Definition at line 30 of file tutorial2str.py.

◆ tapeFunction()

tutorial2str.TutModelData.tapeFunction ( self,
x,
rowno )

evaluates the nonlinear function and records a tape is necessary

Parameters
xcurrent point to be evaluated
rownothe index of the constraint. This is also used for the trace tag.

Definition at line 62 of file tutorial2str.py.

◆ initialiseAutoDiff()

tutorial2str.TutModelData.initialiseAutoDiff ( self)

initialises the automatic differentiation

Definition at line 95 of file tutorial2str.py.

◆ computeHessianStructure()

tutorial2str.TutModelData.computeHessianStructure ( self)

uses the automatic differentiation methods to compute the Hessian structure

Definition at line 108 of file tutorial2str.py.

◆ evaluateNonlinearTerm()

tutorial2str.TutModelData.evaluateNonlinearTerm ( self,
x,
rowno,
ignerr,
thread )

Definition at line 140 of file tutorial2str.py.

◆ evaluateNonlinearJacobian()

tutorial2str.TutModelData.evaluateNonlinearJacobian ( self,
x,
rowno,
jacnum,
ignerr,
thread )

Definition at line 153 of file tutorial2str.py.

◆ evaluateSDLagrangian()

tutorial2str.TutModelData.evaluateSDLagrangian ( self,
x,
u,
hessianrow,
hessiancol )

Definition at line 170 of file tutorial2str.py.