Follow us on Twitter and LinkedIn to get the latest updates from the dev team!
This class provides access to the environment variables and provides facilities to specify where to load the underlying AMPL interpreter.
Public Types
Iterator for the map.
Public Functions
Default constructor
Copy constructor
Assignment operator.
Constructor with ability to select the location of the AMPL binary. Note that if this constructor is used, the automatic lookup for an AMPL executable will not be executed.
binaryDirectory – The directory in which look for the AMPL Binary
binaryName – The name of the AMPL executable if other than “ampl”
Destructor.
Add an environment variable to the environment, or change its value if already defined.
name – name of the environment variable
value – value to be assigned
Set the location where AMPLAPI will search for the AMPL executable.
binaryDirectory – Directory
Get the location where AMPLAPI will search for the AMPL executable.
Get the interpreter that will be used for an AMPL object constructed using this environment.
Set the name of the AMPL executable.
binaryName – Executable
Get the name of the AMPL executable.
Print all variables in the map
Returns an iterator pointing to the first environment variable in the map.
Returns an iterator pointing to the past-the-end element in the map.
Searches the current object for an environment variable called name and returns an iterator to it if found, otherwise it returns an iterator to Environment::end.
Returns the size of the map.
previous
DataFrame
next
ErrorHandler