Error message examples
The objective to NlpDefine evaluates to an array indexed by MultNLP. The objective must evaluate to a scalar in each individual optimization problem (when Vars is indexed only by VarIndex).
If you were trying to setup multiple optimization problems, pass the «SetContext» or «Over» to NlpDefine to successfully array abstract. Documentation on setting up non linear optimization programs to array abstract can be found here.
Else, correct the objective passed to NlpDefine to evaluate to a scalar.