|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectilog.cplex.IloCplex.ParameterSet
A parameter set for IloCplex.
This class allows you to store and restore parameters not at their default values.
IloCplex.ParameterSet
objects can be created empty with
the constructor and then modified. They can also be created by the method
IloCplex.getParameterSet
.
A parameter set can be applied to an instance of IloCplex
by means of IloCplex.setParameterSet(set)
.
IloCplex.getParameterSet()
,
IloCplex.setParameterSet(ilog.cplex.IloCplex.ParameterSet)
,
Serialized FormConstructor Summary | |
IloCplex.ParameterSet()
|
Method Summary | |
void |
clear()
Clears the parameter set. |
boolean |
getParam(IloCplex.BooleanParam which)
Returns the current value of a Boolean parameter. |
double |
getParam(IloCplex.DoubleParam which)
Returns the current value of a double parameter. |
int |
getParam(IloCplex.IntParam which)
Returns the current value of an integer parameter. |
java.lang.String |
getParam(IloCplex.StringParam which)
Returns the current value of a string parameter. |
void |
setParam(IloCplex.BooleanParam which,
boolean val)
Sets a Boolean parameter to value val . |
void |
setParam(IloCplex.DoubleParam which,
double val)
Sets a double parameter to value val . |
void |
setParam(IloCplex.IntParam which,
int val)
Sets an integer parameter to value val . |
void |
setParam(IloCplex.StringParam which,
java.lang.String val)
Sets a string parameter to value val . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IloCplex.ParameterSet()
Method Detail |
public void clear()
public void setParam(IloCplex.IntParam which, int val)
val
.
which
- The identifier of the parameter to set.val
- The new value for the integer parameter.public void setParam(IloCplex.StringParam which, java.lang.String val)
val
.
which
- The identifier of the string parameter to set.val
- The new value for the string parameter.public void setParam(IloCplex.BooleanParam which, boolean val)
val
.
which
- The identifier of the Boolean parameter to be set.val
- The new value for the Boolean parameter.public void setParam(IloCplex.DoubleParam which, double val)
val
.
which
- The identifier of the double parameter to be set.val
- The new value for the double parameterpublic int getParam(IloCplex.IntParam which) throws IloException
which
- The identifier of the integer parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public java.lang.String getParam(IloCplex.StringParam which) throws IloException
which
- The identifier of the string parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public boolean getParam(IloCplex.BooleanParam which) throws IloException
which
- The identifier of the Boolean parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.public double getParam(IloCplex.DoubleParam which) throws IloException
which
- The identifier of the double parameter to be queried.
IloException
- If the method fails, an exception
of type IloException
, or
one of its derived classes, is thrown.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |