NO FRAMES

Class IloCplex::ParameterSet

Definition file: ilcplex/ilocplexi.h

A parameter set for IloCplex, this class allows you to store and restore parameters that are not at their default value.

You can create empty IloCplex.ParameterSet objects with the constructor and then modify them. Alternatively, you can create such objects with the method IloCplex.getParameterSet.

A parameter set can be applied to an instance of IloCplex by means of the method IloCplex.setParameterSet(set).

See Also:

Method Summary
public voidclear()
public voidend()
public IloNumgetParam(IloCplex::NumParam which) const
public IloBoolgetParam(IloCplex::BoolParam which) const
public char *getParam(IloCplex::StringParam which) const
public IloIntgetParam(IloCplex::IntParam which) const
public voidsetParam(IloCplex::NumParam which, IloNum val)
public voidsetParam(IloCplex::BoolParam which, IloBool val)
public voidsetParam(IloCplex::StringParam which, char * val)
public voidsetParam(IloCplex::IntParam which, IloInt val)
Method Detail

clear

public void clear()

Clears the parameter set.


end

public void end()

Ends the parameter set.


getParam

public IloNum getParam(IloCplex::NumParam which) const

Returns the current value of a numeric parameter.

If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

Parameters:

which
The identifier of the num parameter to be queried.

Returns:

The current value of the num parameter.

getParam

public IloBool getParam(IloCplex::BoolParam which) const

Returns the current value of a Boolean parameter.

If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

Parameters:

which
The identifier of the Boolean parameter to be queried.

Returns:

The current value of the Boolean parameter.

getParam

public char * getParam(IloCplex::StringParam which) const

Returns the current value of a string parameter.

If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

Parameters:

which
The identifier of the string parameter to be queried.

Returns:

The current value of the string parameter.

getParam

public IloInt getParam(IloCplex::IntParam which) const

Returns the current value of an integer parameter.

If the method fails, an exception of type IloException, or one of its derived classes, is thrown.

Parameters:

which
The identifier of the integer parameter to be queried.

Returns:

The current value of the integer parameter.

setParam

public void setParam(IloCplex::NumParam which, IloNum val)

Sets a numeric parameter to the value val.

Parameters:

which
The identifier of the num parameter to be set.
val
The new value for the num parameter

setParam

public void setParam(IloCplex::BoolParam which, IloBool val)

Sets a Boolean parameter to the value val.

Parameters:

which
The identifier of the Boolean parameter to be set.
val
The new value for the Boolean parameter.

setParam

public void setParam(IloCplex::StringParam which, char * val)

Sets a string parameter to the value val.

Parameters:

which
The identifier of the string parameter to set.
val
The new value for the string parameter.

setParam

public void setParam(IloCplex::IntParam which, IloInt val)

Sets an integer parameter to the value val.

Parameters:

which
The identifier of the parameter to set.
val
The new value for the integer parameter.