Skip to main content
FRAMES NO FRAMES

Class IloOplProject

Definition file: ilopl/ilooplproject.h
Map of IloOplProjectIloOplProjectIloOplProject
Convenience class for OPL projects.

This class eases the creation of run configurations. It reads configurations created using the OPL IDE.

See Also:

Method Summary
public voidend()
public IloOplProject(IloEnv env, const char * prjPath)
public IloOplRunConfigurationmakeRunConfiguration(const char * name)
public IloOplRunConfigurationmakeRunConfiguration()
public IloStringArraymakeRunConfigurationNames() const
public IloBooltuneParam(IloCplex::ParameterSet fixedSet, IloCplex::ParameterSet resultSet, IloStringArray runConfigNames, IloOplSettings settings)
public IloBooltuneParam(IloCplex::ParameterSet fixedSet, IloCplex::ParameterSet resultSet, IloStringArray runConfigNames)
Method Detail

IloOplProject

public IloOplProject(IloEnv env, const char * prjPath)

This constructor creates a project for the OPL IDE.


end

public void end()

Clears the memory used by this object


makeRunConfiguration

public IloOplRunConfiguration makeRunConfiguration(const char * name)

This member function creates a named run configuration.

The caller is responsible for ending the run configuration.

Parameters:

name
The name of the run configuration to create.

Returns:

The named run configuration.

makeRunConfiguration

public IloOplRunConfiguration makeRunConfiguration()

This member function creates the default run configuration.

The caller is responsible for ending the run configuration. Refer also to the Interfaces User's Manual.

Returns:

The default run configuration.

makeRunConfigurationNames

public IloStringArray makeRunConfigurationNames() const

This member function returns the names of all available run configurations.

The caller is responsible for ending the returned array. Refer also to the Interfaces User's Manual.

Returns:

The run configuration names.

tuneParam

public IloBool tuneParam(IloCplex::ParameterSet fixedSet, IloCplex::ParameterSet resultSet, IloStringArray runConfigNames, IloOplSettings settings)

Tune the engine parameters to better solve the given set of run configurations from the invoking project. Works only for CPLEX models.

Parameters:

fixedSet
The set of parameter with their values that you DON'T want the tuning tool to tune.
resultSet
The result set of tuned parameter.
runConfigNames
An array with run configuration names to be tuned. If empty, all run configurations in the project will be tuned.
settings
OPL settings to be used, generating the models.

Returns:

Whether the tuning was successful

tuneParam

public IloBool tuneParam(IloCplex::ParameterSet fixedSet, IloCplex::ParameterSet resultSet, IloStringArray runConfigNames)

Tune the engine parameters to better solve the given set of run configurations from the invoking project. Works only for CPLEX models.

Parameters:

fixedSet
The set of parameter with their values that you DON'T want the tuning tool to tune.
resultSet
The result set of tuned parameter.
runConfigNames
An array with run configuration names to be tuned. If empty, all run configurations in the project will be tuned.

Returns:

Whether the tuning was successful