SolverInfo

Revision as of 19:37, 18 December 2006 by Lchrisman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The SolverInfo function provides information about a specific optimizer engine, or about a previously-defined LP, QP or NLP. Its declaration is:

SolverInfo( lp : optional LP_TYPE ; item : atomic text ; engine : optional atomic text ; 
            ref : optional boolean = False )

Where:

  • lp : A problem instance previously defined by LpDefine, QpDefine or NlpDefine, or returned by FindIIS.
  • item : A description of the desired item(s). See below.
  • engine: The name of a Solver engine.
  • ref : A flag indicating whether a reference to the result should be returned.

The Lp and Engine parameters cannot both be specified in the same call.

Obtaining Information about a Problem Instance

You can obtain information about a previously-defined optimization problem using the two-parameter form of SolverInfo:

 SolverInfo( lp, item )

For example, to get the variable lower bounds use:

 SolverInfo( lp, "lb" )

Possible values for the Item are

"Item" Valid For Dimensionality
"objcoef" LP, QP Vars
"Q" QP Vars, Vars2
"lhs" LP, QP Vars, Constraints
Comments


You are not allowed to post comments.