CLPD-class: Class '"CLPD"'

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

Class for the definition of a linear program

Objects from the Class

Objects can be created by calls of the form new("CLPD", ...), or more conveniently by the generator function LPD().

Slots

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.

Methods

addCon

Adding constraints to a linear program.

addTheta

Amend master problem by theta coefficient (second stage optimisations).

addVar

Adding variables to a linear program.

getA

Retrieving coefficient matrix.

getBounds

Retrieving the specified variable bounds.

getDir

Retrieving the relational operators in the constraints.

getMax

Retrieving the direction of optimization as a logical value.

getObj

Retrieving coefficients of objective.

gt2lt

Converting greater-or-equal to lower-or-equal constraints.

iq2eq

Converting inequality to equality constraints.

lt2gt

Converting lower-or-equal to greater-or-equal constraints.

Primal2Dual

Converting a primal LP into its dual-form.

show

Formatted representation of LP.

solveLPD

Solving a LP by calling Rglpk_solve_LP().

Author(s)

Bernhard Pfaff

See Also

LPD, validLPD

Examples

1
showClass("CLPD")

TSSP documentation built on May 2, 2019, 4:56 p.m.

Related to CLPD-class in TSSP...