Description Objects from the Class Slots Methods Author(s) See Also Examples
Class for the definition of a linear program
Objects can be created by calls of the form new("CLPD", ...)
, or
more conveniently by the generator function LPD()
.
obj
:"vector"
: The coefficients of the
objective.
A
:"matrix"
: The lhs-constraint matrix.
dir
:"character"
: The relation-vector between
the lhs-constraint matrix and the rhs-vector.
rhs
:"vector"
: The values of the rhs-constraints.
bounds
:"list"
: The lower and upper bounds of
the variables in the LP.
max
:"logical"
: Whether the objective should be
maximized or minimized.
Adding constraints to a linear program.
Amend master problem by theta coefficient (second stage optimisations).
Adding variables to a linear program.
Retrieving coefficient matrix.
Retrieving the specified variable bounds.
Retrieving the relational operators in the constraints.
Retrieving the direction of optimization as a logical value.
Retrieving coefficients of objective.
Converting greater-or-equal to lower-or-equal constraints.
Converting inequality to equality constraints.
Converting lower-or-equal to greater-or-equal constraints.
Converting a primal LP into its dual-form.
Formatted representation of LP.
Solving a LP by calling Rglpk_solve_LP()
.
Bernhard Pfaff
1 | showClass("CLPD")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.