drasys.or.mp.lp
Interface LinearProgrammingI

All Known Implementing Classes:
DenseLPBase

public interface LinearProgrammingI

Abstract interface to linear programming algorithms.


Method Summary
 double getObjectiveValue()
          Returns the optimized value of the objective function.
 VectorI getSolution()
          Returns the solution vector.
 void setProblem(ProblemI problem)
          Sets the problem to solve.
 double solve()
          Find the solution that optimizes the objective function.
 

Method Detail

setProblem

public void setProblem(ProblemI problem)
                throws InvalidException
Sets the problem to solve.

solve

public double solve()
             throws NoSolutionException,
                    UnboundedException,
                    InfeasibleException,
                    ConvergenceException,
                    ScaleException,
                    InvalidException
Find the solution that optimizes the objective function.
Returns:
the optimized value of the objective function.

getObjectiveValue

public double getObjectiveValue()
                         throws NoSolutionException
Returns the optimized value of the objective function.

getSolution

public VectorI getSolution()
                    throws NoSolutionException
Returns the solution vector.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com