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.
Default constructor.
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 (character) – The directory in which look for the AMPL binary.
Constructor with ability to select the location and name of the AMPL binary. Note that if this constructor is used, the automatic lookup for an AMPL executable will not be executed.
binaryName (character) – The name of the AMPL binary.
Searches the current object for an environment variable called name and returns its value if found.
name (character) – Name of the environment variable.
The value of the variable or NA.
NA
character
Add an environment variable to the environment, or change its value if already defined.
value (character) – Value to be assigned.
Set the location where AMPLAPI will search for the AMPL executable.
binaryDirectory (character) – The directory in which look for the AMPL Binary.
Get the location where AMPLAPI will search for the AMPL executable.
The location where AMPLAPI will search for the AMPL executable.
Set the name of the AMPL executable.
Get the name of the AMPL executable.
The name of the AMPL executable.
Returns all variables in the object as a string.
All variables in the map.
Returns all variables in the object as a list.
list
previous
AMPL
next
Entity