Skip to main content
FRAMES NO FRAMES

Class IloOplModelSource

Definition file: ilopl/ilooplmodeldefinition.h
Map of IloOplModelSourceIloOplModelSourceIloOplModelSource
The source for an OPL model.

Instances of this class represent the input source for an OPL model.

This class is used to build an internal representation, called the model definition. Refer also to the Interfaces User's Manual.

See Also:

Method Summary
public voidclose() const
public voidend()
public IloOplModelSource(IloEnv env, const char * filename)
public IloOplModelSource(IloEnv env, std::istream & ins, const char * name)
Method Detail

IloOplModelSource

public IloOplModelSource(IloEnv env, const char * filename)

This constructor creates a model input source from a model file.

OPL detects compiled sources automatically.

Parameters:

env
The environment to allocate memory.
filename
The path to the model file.

IloOplModelSource

public IloOplModelSource(IloEnv env, std::istream & ins, const char * name)

This constructor creates a model input source from a stream that provides model file syntax.

OPL detects compiled sources automatically.

Parameters:

env
The environment to allocate memory.
ins
The input stream from which the model file syntax is read.
name
The name of this model source.

close

public void close() const

This member function closes this model source; it is no longer needed.


end

public void end()

Clears the memory used by this object