Error Messages/40593

Error Message Examples

The constraint left-hand side is indexed by Ind. The lhs should evaluate to a single 
number since there is only one constraint and no constraint index was specified in 
NlpDefine. The non-linear optimizer does not automatically array abstract over extra 
dimensions in lhs.

Cause

Lhs passed to the NlpDefine function is indexed and not scalar, but no constraint index is passed to the function. If there are more than one constraint, a constraint index must be passed, and lhs, rhs and sense must be indexed by the constraint index.

Remedies

If a non linear optimization problem has more than one constraint, then you should pass in a constraint index that indexes lhs, rhs and sense.

Else, lhs passed to the function must evaluate to a scalar.



You are not allowed to post comments.

Comments
<comments />