CONOPT
Loading...
Searching...
No Matches
pinadd2err Class Reference

Main program. A simple setup and call of CONOPT. More...

Static Public Member Functions

static void main (String argv[])
 

Data Fields

 name = os.path.basename(__file__)[:-3]
 
 conopt = co.Conopt(name)
 
 msghdlr = std.TutMessageHandler(name)
 
 license_int_1 = os.environ.get('CONOPT_LICENSE_INT_1', None)
 
 license_int_2 = os.environ.get('CONOPT_LICENSE_INT_2', None)
 
 license_int_3 = os.environ.get('CONOPT_LICENSE_INT_3', None)
 
 license_text = os.environ.get('CONOPT_LICENSE_TEXT', None)
 
list expected_sols = [1225.86, 1280.28, 1333.74, 1386.24]
 
 model = PinAdd2ErrModelData()
 
 xkeep = conopt.getVariableValues()
 
 xstat = conopt.getVariableStatus()
 
 estat = conopt.getConstraintStatus()
 
 coi_error = conopt.solve()
 
 retcode
 

Detailed Description

Main program. A simple setup and call of CONOPT.

Definition at line 14 of file pinadd2err.java.

Member Function Documentation

◆ main()

static void pinadd2err.main ( String argv[])
inlinestatic

We have an intentional error in Pin_2DLagrStr and we have turned debugging on. COI_Solve should still return 0, but the Solver status should return 5, Evaluation Error Limit, and the Model status should be Intermediate Infeasible (6) or Intermediate Nonoptimal (7).

Definition at line 15 of file pinadd2err.java.

Field Documentation

◆ name

pinadd2err.name = os.path.basename(__file__)[:-3]

Definition at line 438 of file pinadd2err.py.

◆ conopt

pinadd2err.conopt = co.Conopt(name)

Definition at line 440 of file pinadd2err.py.

◆ msghdlr

pinadd2err.msghdlr = std.TutMessageHandler(name)

Definition at line 441 of file pinadd2err.py.

◆ license_int_1

pinadd2err.license_int_1 = os.environ.get('CONOPT_LICENSE_INT_1', None)

Definition at line 448 of file pinadd2err.py.

◆ license_int_2

pinadd2err.license_int_2 = os.environ.get('CONOPT_LICENSE_INT_2', None)

Definition at line 449 of file pinadd2err.py.

◆ license_int_3

pinadd2err.license_int_3 = os.environ.get('CONOPT_LICENSE_INT_3', None)

Definition at line 450 of file pinadd2err.py.

◆ license_text

pinadd2err.license_text = os.environ.get('CONOPT_LICENSE_TEXT', None)

Definition at line 451 of file pinadd2err.py.

◆ expected_sols

list pinadd2err.expected_sols = [1225.86, 1280.28, 1333.74, 1386.24]

Definition at line 465 of file pinadd2err.py.

◆ model

pinadd2err.model = PinAdd2ErrModelData()

Definition at line 467 of file pinadd2err.py.

◆ xkeep

pinadd2err.xkeep = conopt.getVariableValues()

Definition at line 469 of file pinadd2err.py.

◆ xstat

pinadd2err.xstat = conopt.getVariableStatus()

Definition at line 470 of file pinadd2err.py.

◆ estat

pinadd2err.estat = conopt.getConstraintStatus()

Definition at line 471 of file pinadd2err.py.

◆ coi_error

pinadd2err.coi_error = conopt.solve()

Definition at line 487 of file pinadd2err.py.

◆ retcode

pinadd2err.retcode
Initial value:
conopt, expected_sols[i - 17], coi_error, tol=0.01
)
static int checkSolve(String name, int model_status, int solution_status, double objective, double expected_objective, double tol)
Definition std.java:20

Definition at line 520 of file pinadd2err.py.


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