SolverInfo
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 | Type |
---|---|---|---|
"objcoef" | LP, QP | Vars | numeric |
"Q" | QP | Vars, Vars2 | numeric |
"lhs" | LP, QP | Vars, Constraints | numeric |
"rhs" | LP,QP,NLP | Constraints | numeric |
"lb" | LP,QP,NLP | Vars | numeric |
"sense" | LP,QP,NLP | Constraints | '>=','<=', or '=' |
"ub" | LP,QP,NLP | Vars | numeric |
"ctype" | LP,QP,NLP | Vars | 'C', 'I', or 'B' |
"maximize" | LP,QP,NLP | atomic | True, False |
"engine" | LP,QP,NLP | atomic | text |
"setting" | LP,QP,NLP | local .Parameter | numeric |
"type" | LP,QP,NLP | atomic | "LP","QP" or "NLP" |
Comments
Enable comment auto-refresher