net.sf.javailp
Class SolverGurobi

java.lang.Object
  extended by net.sf.javailp.AbstractSolver
      extended by net.sf.javailp.SolverGurobi
All Implemented Interfaces:
Solver

public class SolverGurobi
extends AbstractSolver

The SolverGurobi is the Solver Gurobi.


Nested Class Summary
static interface SolverGurobi.Hook
          The Hook for the SolverGurobi.
 
Field Summary
 
Fields inherited from interface net.sf.javailp.Solver
POSTSOLVE, TIMEOUT, VERBOSE
 
Constructor Summary
SolverGurobi()
           
 
Method Summary
 void addHook(SolverGurobi.Hook hook)
          Adds a hook.
 void removeHook(SolverGurobi.Hook hook)
          Removes a hook
 Result solve(Problem problem)
          Solve the optimization problem.
 
Methods inherited from class net.sf.javailp.AbstractSolver
getParameters, setParameter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolverGurobi

public SolverGurobi()
Method Detail

solve

public Result solve(Problem problem)
Description copied from interface: Solver
Solve the optimization problem. Returns null if there exists no feasible solution for the problem.

Parameters:
problem - the optimization problem
Returns:
the result

addHook

public void addHook(SolverGurobi.Hook hook)
Adds a hook.

Parameters:
hook - the hook to be added

removeHook

public void removeHook(SolverGurobi.Hook hook)
Removes a hook

Parameters:
hook - the hook to be removed