Difference between revisions of "LpDefine"

 
(Listed parameters for Lpdefine)
Line 3: Line 3:
 
Defines a linear programming problem.
 
Defines a linear programming problem.
  
{{stub}}
+
= LpDefine( Vars, Constraints, objCoef, Lhs, Rhs ) =
 +
 
 +
= Full set of Parameters =
 +
 
 +
LpDefine supports many optional parameters. The full set of parameters are as follows:
 +
 
 +
* ''Vars'' : Index
 +
* ''Constraints'' : Index
 +
* ''objCoef'' : Numeric all[Vars]
 +
* ''Lhs'' : numeric all[Vars,Constraints]
 +
* ''Rhs'' : numeric all[Constraints]
 +
* ''Sense'' : optional Textual[Constraints]
 +
One of: '<', '>' or '='
 +
* ''Maximize'' : optional Boolean
 +
True for maximization problems, false (default) for minimization.
 +
* ''Lb'' : optional Numeric[Vars]
 +
* ''Ub'' : optional Numeric[Vars]
 +
* ''CType'' : optional Textual[Vars]
 +
** 'C' : Continuous (real-valued)
 +
** 'I' : Integer-valued
 +
** 'B' : Binary (0/1) valued
 +
* ''Group'' : optional number all[Vars]
 +
* ''Engine'' : optional text
 +
Used to select a third-party (non-default) solver engine.  Use [[SolverInfo]]("AvailEngines") to get a list of installed engines.
 +
* ''Parameter'' : optional Text
 +
* ''Setting'' : optional numeric
 +
Parameter and Setting are used together to change a search-control parameter from its default value.  To set multiple parameters, ensure that Parameter and Setting contain a common index.  For a list of parameters supported by a given engine, use [[SolverInfo]]("DefaultSettings",engine:engineName).
  
 
= See Also =
 
= See Also =
 +
 +
* [[QpDefine]], [[NlpDefine]]
 +
* [[LpStatusText]], [[LpSolution]]
 +
* [[LpRead]], [[LpWrite]]

Revision as of 00:13, 10 April 2007


Defines a linear programming problem.

LpDefine( Vars, Constraints, objCoef, Lhs, Rhs )

Full set of Parameters

LpDefine supports many optional parameters. The full set of parameters are as follows:

  • Vars : Index
  • Constraints : Index
  • objCoef : Numeric all[Vars]
  • Lhs : numeric all[Vars,Constraints]
  • Rhs : numeric all[Constraints]
  • Sense : optional Textual[Constraints]

One of: '<', '>' or '='

  • Maximize : optional Boolean

True for maximization problems, false (default) for minimization.

  • Lb : optional Numeric[Vars]
  • Ub : optional Numeric[Vars]
  • CType : optional Textual[Vars]
    • 'C' : Continuous (real-valued)
    • 'I' : Integer-valued
    • 'B' : Binary (0/1) valued
  • Group : optional number all[Vars]
  • Engine : optional text

Used to select a third-party (non-default) solver engine. Use SolverInfo("AvailEngines") to get a list of installed engines.

  • Parameter : optional Text
  • Setting : optional numeric

Parameter and Setting are used together to change a search-control parameter from its default value. To set multiple parameters, ensure that Parameter and Setting contain a common index. For a list of parameters supported by a given engine, use SolverInfo("DefaultSettings",engine:engineName).

See Also

Comments


You are not allowed to post comments.