CONOPT
Loading...
Searching...
No Matches

Functions

 pyconopt.Conopt.solve (self)
 method for starting the solving process of CONOPT.
 
 pyconopt.Conopt.controlVector (self)
 returns the control vector pointer.
 
 pyconopt.Conopt.printStatus (self)
 prints the status of the optimisation
 
 pyconopt.Conopt.getName (self)
 returns the model name
 
 pyconopt.Conopt.version ()
 returns the version number.
 
 pyconopt.Conopt.getMaxThreads (self)
 returns the maximum number of threads that can be used by CONOPT.
 
 pyconopt.Conopt.getMaxHeapUsed (self)
 After a model has been solved this method will return the amount of heap memory used.
 
 pyconopt.Conopt.getRangeErrors (self)
 returns the range errors that were encountered.
 

Detailed Description

This section describes utility routines in the CONOPT DLL.

These methods are called to start the solver and retrieve information about the solver.

Function Documentation

◆ solve()

pyconopt.Conopt.solve ( self)

method for starting the solving process of CONOPT.

Definition at line 1436 of file pyconopt.py.

◆ controlVector()

pyconopt.Conopt.controlVector ( self)

returns the control vector pointer.

This is for use in the C-interface methods

Definition at line 1449 of file pyconopt.py.

◆ printStatus()

pyconopt.Conopt.printStatus ( self)

prints the status of the optimisation

Definition at line 1460 of file pyconopt.py.

◆ getName()

pyconopt.Conopt.getName ( self)

returns the model name

Definition at line 1469 of file pyconopt.py.

◆ version()

pyconopt.Conopt.version ( )
static

returns the version number.

It can be used to ensure that the modeler is linked to the correct version of the CONOPT DLL.

Definition at line 1641 of file pyconopt.py.

◆ getMaxThreads()

pyconopt.Conopt.getMaxThreads ( self)

returns the maximum number of threads that can be used by CONOPT.

If you are using multiple threads it may be necessary to know in advance how many threads CONOPT can use. If called inside a parallel loop, this method will return one—indicating that CONOPT cannot use multiple threads when CONOPT itself is called in parallel. Therefore, this method should be called in some sequential initialization code and not inside a function evaluation routine, that could be called in parallel.

Definition at line 1823 of file pyconopt.py.

◆ getMaxHeapUsed()

pyconopt.Conopt.getMaxHeapUsed ( self)

After a model has been solved this method will return the amount of heap memory used.

Definition at line 1837 of file pyconopt.py.

◆ getRangeErrors()

pyconopt.Conopt.getRangeErrors ( self)

returns the range errors that were encountered.

Definition at line 1846 of file pyconopt.py.