Skip to main content
FRAMES NO FRAMES

Class IloOplModelDefinition

Definition file: ilopl/ilooplmodeldefinition.h
Map of IloOplModelDefinitionIloOplModelDefinitionIloOplModelDefinition
Definition for an OPL model.

Instances of this class hold the internal representation of a model source. Use this class to instantiate multiple OPL models.

See Also:

Method Summary
public voidend()
public IloBoolhasMain() const
public IloOplModelDefinition(IloOplModelSource source, IloOplSettings settings)
public IloBoolread()
Method Detail

IloOplModelDefinition

public IloOplModelDefinition(IloOplModelSource source, IloOplSettings settings)

This constructor creates a model definition. Refer also to the Interfaces User's Manual.

See Also:

Parameters:

source
The model source for this definition.
settings
The settings object.

end

public void end()

Clears the memory used by this object


hasMain

public IloBool hasMain() const

This function checks whether the model definition has a main scripting block.

Returns:

True if the model definition has a main scripting block defined.

read

public IloBool read()

This member function reads the model source and builds its internal representation. You do not need to call this method explicitly. OPL calls it as necessary.

Returns:

IloTrue if the representation was created successfully.