|
CONOPT
|
Public Member Functions | |
| __init__ (self, int numobs, int dimensionx) | |
| rndx (self) | |
| Defines a pseudo random number between 0 and 1. | |
| define_data (self) | |
| Defines the data for the problem. | |
| 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 | |
| initDirectionalSDEval (self, x, dx, rowlist, numthread, newpoint) | |
| a callback for the initialisation of the second derivative evaluation. | |
| evaluateDirectionalSD (self, x, dx, rowno, jacnum, thread) | |
| computes the directional second derivative for a single constraint | |
Data Fields | |
| int | seed = 12359 |
| nobs = numobs | |
| dimx = dimensionx | |
| int | consobj = 0 |
| list | A = [0] * (self.nobs * self.dimx) |
| list | B = [0] * (self.nobs * self.dimx) |
| list | C = [0] * (self.nobs * self.dimx) |
| list | Obs = [0] * self.nobs |
| list | varx = [] |
| list | varres = [] |
| list | consresidual = [] |
Definition at line 18 of file leastsq10.py.
| leastsq10.LeastSqModelData.__init__ | ( | self, | |
| int | numobs, | ||
| int | dimensionx ) |
Definition at line 19 of file leastsq10.py.
| leastsq10.LeastSqModelData.rndx | ( | self | ) |
Defines a pseudo random number between 0 and 1.
NOTE: it would be possible to use random module to generate the random numbers. We have written our own random number generator to be consistent with the original Fortran example.
Definition at line 39 of file leastsq10.py.
| leastsq10.LeastSqModelData.define_data | ( | self | ) |
Defines the data for the problem.
Definition at line 52 of file leastsq10.py.
| int leastsq10.LeastSqModelData.seed = 12359 |
Definition at line 20 of file leastsq10.py.
| leastsq10.LeastSqModelData.nobs = numobs |
Definition at line 22 of file leastsq10.py.
| leastsq10.LeastSqModelData.dimx = dimensionx |
Definition at line 23 of file leastsq10.py.
| leastsq10.LeastSqModelData.consobj = 0 |
Definition at line 24 of file leastsq10.py.
| list leastsq10.LeastSqModelData.A = [0] * (self.nobs * self.dimx) |
Definition at line 26 of file leastsq10.py.
| list leastsq10.LeastSqModelData.B = [0] * (self.nobs * self.dimx) |
Definition at line 27 of file leastsq10.py.
| list leastsq10.LeastSqModelData.C = [0] * (self.nobs * self.dimx) |
Definition at line 28 of file leastsq10.py.
| list leastsq10.LeastSqModelData.Obs = [0] * self.nobs |
Definition at line 29 of file leastsq10.py.
| list leastsq10.LeastSqModelData.varx = [] |
Definition at line 31 of file leastsq10.py.
| list leastsq10.LeastSqModelData.varres = [] |
Definition at line 32 of file leastsq10.py.
| list leastsq10.LeastSqModelData.consresidual = [] |
Definition at line 33 of file leastsq10.py.