|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.econcs.jopt.solver.client.SolverClient
public class SolverClient
Local class that can be used to solve a MIP. Finds a remote Solver to actually do the calculation.
Constructor Summary | |
---|---|
SolverClient()
Creates a default local solver |
|
SolverClient(IMIPSolver solver)
create a client using the given solver explicitly. |
|
SolverClient(java.lang.String host,
int port)
Creates a client using the server at the given host and port. |
|
SolverClient(TypedProperties props)
|
Method Summary | |
---|---|
java.lang.String |
getHost()
|
java.lang.String |
getName()
|
int |
getPort()
|
IMIPResult |
solve(byte[] serializedMip)
Solve the given serialized mip |
IMIPResult |
solve(IMIP mip)
Solve the given mip |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SolverClient(TypedProperties props)
public SolverClient()
public SolverClient(java.lang.String host, int port)
public SolverClient(IMIPSolver solver)
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getHost()
public int getPort()
public IMIPResult solve(IMIP mip) throws MIPException
solve
in interface IMIPSolver
MIPException
public IMIPResult solve(byte[] serializedMip)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |