Difference between revisions of "Error Messages/40561"

 
Line 3: Line 3:
 
== Error text ==
 
== Error text ==
  
:<code>''The second parameter, «lp», was not specified to [[SolverInfo]], but is required when Item: "lhs" is specified.''</code>
+
:<code>''The second parameter, «lp», was not specified to SolverInfo, but is required when Item: "lhs" is specified.''</code>
  
 
== Cause ==
 
== Cause ==
Line 18: Line 18:
 
== See Also ==  
 
== See Also ==  
 
* [[Function calls and parameters]]
 
* [[Function calls and parameters]]
 +
* [[Function parameter qualifiers]]
 
* [[Using a Solver Add-on Engine]]
 
* [[Using a Solver Add-on Engine]]
 
* [[SolverInfo]]
 
* [[SolverInfo]]
 
* [[OptEngineInfo]]
 
* [[OptEngineInfo]]

Latest revision as of 21:16, 29 March 2016


Error text

The second parameter, «lp», was not specified to SolverInfo, but is required when Item: "lhs" is specified.

Cause

You've probably only supplied a single parameter SolverInfo -- the «Item» parameter. SolverInfo also needs to know which optimization formulation you are requesting information on, which you pass to it using the second parameter, «lp», such as in this example usage:

SolverInfo("lhs", myNlp)

The possible item values of "objcoef", "Q", "lhs", "lhsQ", "rhs", "constraintUb", "constraintLb", "sense", "lb", "ub", "ctype", "group", "maximize", "engine", "setting", "type", "vars" and "constraints" all require the second «lp» parameter. See SolverInfo for more info.

Remedies

Change the function call by providing the missing «lp» (optimization problem) parameter.

See Also

Comments


You are not allowed to post comments.