sbrt.kernel.math.optimization
Interface LinearProgramSolver<R,C>

Type Parameters:
R - the row variable type.
C - the column variable type.
All Superinterfaces:
ProgramSolver<R,C>
All Known Implementing Classes:
CplexSolver, GlpkSolver

public interface LinearProgramSolver<R,C>
extends ProgramSolver<R,C>

This interface is used to represent linear program solvers.

Author:
This interface was written and documented by Jeremiah Wright while in the Wagner lab.

Method Summary
 void setConstraint(LinearComb<? extends C> expression, Interval c)
          Sets a constraint on the provided linear combination of column variables.
 void setObjectiveFunction(LinearComb<? extends C> expression)
          Sets the objective function to the provided linear combination of column variables.
 void setObjectiveFunction(LinearComb<? extends C> expression, OptSense sense)
          Sets the objective function and optimization sense to the provided values.
 
Methods inherited from interface sbrt.kernel.math.optimization.ProgramSolver
clear, getObjectiveValue, getSolutionVector, getStatus, isColumnVar, isRowVar, optimize, setColumnConstraint, setColumnConstraints, setConstraint, setConstraints, setMatrixElement, setObjectiveFunction, setObjectiveFunction, setOptimizationSense, setParamFile, setRowConstraint, setRowConstraints
 

Method Detail

setConstraint

void setConstraint(LinearComb<? extends C> expression,
                   Interval c)
Sets a constraint on the provided linear combination of column variables.

Parameters:
expression - a linear combination of column variables for which the constraint is set.
c - the constraint.

setObjectiveFunction

void setObjectiveFunction(LinearComb<? extends C> expression,
                          OptSense sense)
Sets the objective function and optimization sense to the provided values.

Parameters:
expression - a linear combination of column variables from this program solver.
sense - the optimization sense.
See Also:
setObjectiveFunction(LinearComb), ProgramSolver.setOptimizationSense(OptSense)

setObjectiveFunction

void setObjectiveFunction(LinearComb<? extends C> expression)
Sets the objective function to the provided linear combination of column variables.

Parameters:
expression - a linear combination of column variables from this program solver.