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.
ampl
AMPL
Inheritance Hierarchy
Syntax
Methods
Properties
System.Object
ampl.Environment
public class Environment : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Get the enumerator for the map of environment variables
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String>>
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
System.Collections.IEnumerator
IEnumerator IEnumerable.GetEnumerator()
Access and sets values
key (System.String) – Environment variable to get or set
System.String
Its value if present, null otherwise
public string this[string key] { get; set; }