Download LINDO API USER MANUAL

Transcript
478
CHAPTER 11
LSloadNLPData()
Description:
Loads a nonlinear program’s data into the model data structure.
MATLAB Prototype:
>> "[nErrorCode] = mxLINDO('LSloadNLPData', iModel, aiCols, acCols,
adCoef, aiRows, nObjcnt, aiObjndx, adObjcoef)
RHS Arguments:
Name
Description
iModel
An integer referring to an instance of LSmodel in which to
place the problem data.
aiCols
An integer vector containing the index of the first nonlinear
nonzero in each column. This vector must have nVars+1
entries, where nVars is the number of variables. The last entry
will be the index of the next appended column, assuming one
was to be appended.
acCols
An integer vector containing the number of nonlinear elements
in each column.
adCoef
A double precision vector containing initial values of the
nonzero coefficients in the (Jacobian) matrix. It may be set to
[ ], in which case, LINDO API will compute an initial matrix.
aiRows
An integer vector containing the row indices of the nonlinear
elements.
nObjcnt
An integer containing the number of nonlinear variables in the
objective.
aiObjndx
An integer vector containing the column indices of nonlinear
variables in the objective function.
adObjCoef
A double precision vector containing the initial nonzero
coefficients in the objective. It may be set to [ ], in which case,
LINDO API will compute an initial gradient vector.
LHS Arguments:
Name
Description
nStatus
An integer error code. If successful, nStatus will be 0 on return.
A list of possible error codes may be found in Appendix A.