Difference between revisions of "Error Messages/40325"

(Created page with '= Example Error Text = :The value, 510, given in the second parameter to LpObjSa was not found in the index ''DecVars''. The value should identify a linear program variable.…')
 
 
Line 1: Line 1:
= Example Error Text =
+
[[Category: Error messages]]
  
:The value, 510, given in the second parameter to [[LpObjSa]] was not found in the index ''DecVars''. The value should identify a linear program variable.
+
== Example error text ==
  
= Cause =
+
<pre style="background:white; border:white; margin-left: 1em; font-style:italic">
 +
The value, 510, given in the second parameter to LpObjSa was not found in the index DecVars.
 +
The value should identify a linear program variable.
 +
</pre>
 +
 
 +
== Cause ==
  
 
The second parameter to [[LpObjSa]] should only be specified when using structured optimization.  If you are using Analytica Optimizer 4.2 or earlier, you should never specify the second parameter to [[LpObjSa]].  Likewise if your optimization problem was formulated using any of the functions [[LpDefine]], [[QpDefine]] or [[NlpDefine]].  In any of those cases, remove the second parameter from your call to [[LpObjSa]].
 
The second parameter to [[LpObjSa]] should only be specified when using structured optimization.  If you are using Analytica Optimizer 4.2 or earlier, you should never specify the second parameter to [[LpObjSa]].  Likewise if your optimization problem was formulated using any of the functions [[LpDefine]], [[QpDefine]] or [[NlpDefine]].  In any of those cases, remove the second parameter from your call to [[LpObjSa]].
  
If you have used [[OptDefine]] to define a structured optimization problem, then this error occurs when the second parameter to [[LpObjSa]] is not one of your decision variables.  The parameter passed must be the identifier of variable listed in the «decisions» parameter of [[OptDefine]].   
+
If you have used [[DefineOptimization]] to define a structured optimization problem, then this error occurs when the second parameter to [[LpObjSa]] is not one of your decision variables.  The parameter passed must be the [[identifier]] of variable listed in the «decisions» parameter of [[DefineOptimization]].   
 
 
= See Also =
 
  
* [[OptDefine]]
+
== See Also ==
 +
* [[LpObjSa]]
 +
* [[LpDefine]]
 +
* [[QpDefine]]
 +
* [[NlpDefine]].
 +
* [[DefineOptimization]]
 +
* [[Function calls and parameters]]
 +
* [[Classes of variables and other objects]]
 +
* [[Arrays and Indexes]]
 +
* [[Identifier]]

Latest revision as of 00:29, 25 March 2016


Example error text

The value, 510, given in the second parameter to LpObjSa was not found in the index DecVars. 
The value should identify a linear program variable.

Cause

The second parameter to LpObjSa should only be specified when using structured optimization. If you are using Analytica Optimizer 4.2 or earlier, you should never specify the second parameter to LpObjSa. Likewise if your optimization problem was formulated using any of the functions LpDefine, QpDefine or NlpDefine. In any of those cases, remove the second parameter from your call to LpObjSa.

If you have used DefineOptimization to define a structured optimization problem, then this error occurs when the second parameter to LpObjSa is not one of your decision variables. The parameter passed must be the identifier of variable listed in the «decisions» parameter of DefineOptimization.

See Also

Comments


You are not allowed to post comments.