CONOPT
|
Functions | |
pyconopt.ModelData.evaluateNonlinearTerm (self, x, rowno, ignerr, thread) | |
callback method for evaluating the nonlinear terms in a given row | |
pyconopt.ModelData.evaluateNonlinearJacobian (self, x, rowno, jacnum, ignerr, thread) | |
callback method for evaluating the jacobian for the nonlinear terms in a given row | |
pyconopt.ModelData.endFDEvaluation (self, ignerr) | |
Optional function, if defined, it will be called at the end of the function evaluation stage. | |
Virtual functions to be implemented by the user for the evaluation of non-linear functions and derivatives.
pyconopt.ModelData.evaluateNonlinearTerm | ( | self, | |
x, | |||
rowno, | |||
ignerr, | |||
thread ) |
callback method for evaluating the nonlinear terms in a given row
x | the solution vector that needs to be evaluated. |
rowno | the number for the row in which the nonlinear term exists. |
ignerr | a boolean to indicate whether the current point is safe or unsafe. |
thread | the index of the thread from which this method is being called from. |
Notes: an error in the evaluation is reported by calling errorInEvaluation()
Reimplemented in qp1.QPModelData, qp2.QPModelData, qp3.QPModelData, qp4.QPModelData, tutorial.TutModelData, tutorial2.TutModelData, and tutoriali.TutModelData.
Definition at line 2420 of file pyconopt.py.
pyconopt.ModelData.evaluateNonlinearJacobian | ( | self, | |
x, | |||
rowno, | |||
jacnum, | |||
ignerr, | |||
thread ) |
callback method for evaluating the jacobian for the nonlinear terms in a given row
x | the solution vector that needs to be evaluated. |
rowno | the number for the row in which the nonlinear term exists. |
jacnum | vector with a list of column numbers for the nonlinear nonzero Jacobian elements in the row. |
ignerr | a boolean to indicate whether the current point is safe or unsafe. |
thread | the index of the thread from which this method is being called from. |
Notes: an error in the evaluation is reported by calling errorInEvaluation()
Reimplemented in qp1.QPModelData, qp2.QPModelData, qp3.QPModelData, qp4.QPModelData, tutorial.TutModelData, tutorial2.TutModelData, and tutoriali.TutModelData.
Definition at line 2437 of file pyconopt.py.
pyconopt.ModelData.endFDEvaluation | ( | self, | |
ignerr ) |
Optional function, if defined, it will be called at the end of the function evaluation stage.
This can be used to clean up any user data generated, such as in FDEvalIni
, that was used to improve the efficiency of the function and derivative evaluation.
ignerr | a boolean to indicate whether the current point is safe or unsafe. |
Notes: an error in the evaluation is reported by calling errorInEvaluation()
Definition at line 2476 of file pyconopt.py.