Error Messages/40593

< Error Messages
Revision as of 22:27, 20 January 2010 by AManandhar (talk | contribs) (Created page with '= 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 ind…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 indec 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 />