public static class IloCplex.ParameterSet
extends java.lang.Object
implements java.io.Serializable
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).
| Constructor and Description |
|---|
IloCplex.ParameterSet() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
long |
getParam(IloCplex.LongParam which)
Returns the current value of an integer parameter.
|
java.lang.String |
getParam(IloCplex.StringParam which)
Returns the current value of a string parameter.
|
java.util.Iterator |
iterator() |
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.LongParam which,
long val)
Sets an integer parameter to value
val. |
void |
setParam(IloCplex.StringParam which,
java.lang.String val)
Sets a string parameter to value
val. |
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.LongParam which, long 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
IloException - If the method fails, an exception
of type IloException, or
one of its derived classes, is thrown.which - The identifier of the integer parameter to be queried.public long getParam(IloCplex.LongParam which) throws IloException
IloException - If the method fails, an exception
of type IloException, or
one of its derived classes, is thrown.which - The identifier of the integer parameter to be queried.public java.lang.String getParam(IloCplex.StringParam which) throws IloException
IloException - If the method fails, an exception
of type IloException, or
one of its derived classes, is thrown.which - The identifier of the string parameter to be queried.public boolean getParam(IloCplex.BooleanParam which) throws IloException
IloException - If the method fails, an exception
of type IloException, or
one of its derived classes, is thrown.which - The identifier of the Boolean parameter to be queried.public double getParam(IloCplex.DoubleParam which) throws IloException
IloException - If the method fails, an exception
of type IloException, or
one of its derived classes, is thrown.which - The identifier of the double parameter to be queried.public java.util.Iterator iterator()