IAMPL Interface =============== Namespace :dn:ns:`ampl.com` Assemblies * AMPL ---- .. contents:: :local: Syntax ------ .. code-block:: csharp public interface IAMPL .. dn:interface:: ampl.com.IAMPL :hidden: .. dn:interface:: ampl.com.IAMPL Methods ------- .. dn:interface:: ampl.com.IAMPL :noindex: :hidden: .. dn:method:: ampl.com.IAMPL.Cd(System.String) :type directoryName: System.String :rtype: System.String .. code-block:: csharp string Cd(string directoryName = null) .. dn:method:: ampl.com.IAMPL.Close() .. code-block:: csharp void Close() .. dn:method:: ampl.com.IAMPL.Display(System.String[]) :type args: System.String[] .. code-block:: csharp void Display(params string[] args) .. dn:method:: ampl.com.IAMPL.Dispose() .. code-block:: csharp void Dispose() .. dn:method:: ampl.com.IAMPL.EnableErrorAndWarningRouting() .. code-block:: csharp void EnableErrorAndWarningRouting() .. dn:method:: ampl.com.IAMPL.Eval(System.String) :type AMPLStatements: System.String .. code-block:: csharp void Eval(string AMPLStatements) .. dn:method:: ampl.com.IAMPL.EvalAsync(System.String, System.Action) :type AMPLStatements: System.String :type cb: System.Action .. code-block:: csharp void EvalAsync(string AMPLStatements, Action cb) .. dn:method:: ampl.com.IAMPL.Expand(ampl.Entities.Entity[]) :type entities: ampl.Entities.Entity[] .. code-block:: csharp void Expand(params Entity[] entities) .. dn:method:: ampl.com.IAMPL.GetBoolOption(System.String) :type name: System.String :rtype: System.Boolean .. code-block:: csharp bool GetBoolOption(string name) .. dn:method:: ampl.com.IAMPL.GetConstraint(System.String) :type name: System.String :rtype: ampl.Entities.Constraint .. code-block:: csharp Constraint GetConstraint(string name) .. dn:method:: ampl.com.IAMPL.GetConstraints() :rtype: ampl.Entities.ConstraintMap .. code-block:: csharp ConstraintMap GetConstraints() .. dn:method:: ampl.com.IAMPL.GetData(System.String[]) :type statements: System.String[] :rtype: ampl.DataFrame .. code-block:: csharp DataFrame GetData(params string[] statements) .. dn:method:: ampl.com.IAMPL.GetDblOption(System.String) :type name: System.String :rtype: System.Double .. code-block:: csharp double GetDblOption(string name) .. dn:method:: ampl.com.IAMPL.GetEntity(System.String) :type name: System.String :rtype: ampl.Entities.Entity .. code-block:: csharp Entity GetEntity(string name) .. dn:method:: ampl.com.IAMPL.GetIntOption(System.String) :type name: System.String :rtype: System.Int32 .. code-block:: csharp int GetIntOption(string name) .. dn:method:: ampl.com.IAMPL.GetObjective(System.String) :type name: System.String :rtype: ampl.Entities.Objective .. code-block:: csharp Objective GetObjective(string name) .. dn:method:: ampl.com.IAMPL.GetObjectives() :rtype: ampl.Entities.ObjectiveMap .. code-block:: csharp ObjectiveMap GetObjectives() .. dn:method:: ampl.com.IAMPL.GetOption(System.String) :type name: System.String :rtype: System.String .. code-block:: csharp string GetOption(string name) .. dn:method:: ampl.com.IAMPL.GetOutput(System.String) :type AMPLStatements: System.String :rtype: System.String .. code-block:: csharp string GetOutput(string AMPLStatements) .. dn:method:: ampl.com.IAMPL.GetParameter(System.String) :type name: System.String :rtype: ampl.Entities.Parameter .. code-block:: csharp Parameter GetParameter(string name) .. dn:method:: ampl.com.IAMPL.GetParameters() :rtype: ampl.Entities.ParameterMap .. code-block:: csharp ParameterMap GetParameters() .. dn:method:: ampl.com.IAMPL.GetSet(System.String) :type name: System.String :rtype: ampl.Entities.Set .. code-block:: csharp Set GetSet(string name) .. dn:method:: ampl.com.IAMPL.GetSets() :rtype: ampl.Entities.SetMap .. code-block:: csharp SetMap GetSets() .. dn:method:: ampl.com.IAMPL.GetValue(System.String) :type scalarExpression: System.String :rtype: ampl.Variant .. code-block:: csharp Variant GetValue(string scalarExpression) .. dn:method:: ampl.com.IAMPL.GetVariable(System.String) :type name: System.String :rtype: ampl.Entities.Variable .. code-block:: csharp Variable GetVariable(string name) .. dn:method:: ampl.com.IAMPL.GetVariables() :rtype: ampl.Entities.VariableMap .. code-block:: csharp VariableMap GetVariables() .. dn:method:: ampl.com.IAMPL.Interrupt() .. code-block:: csharp void Interrupt() .. dn:method:: ampl.com.IAMPL.Read(System.String) :type filename: System.String .. code-block:: csharp void Read(string filename) .. dn:method:: ampl.com.IAMPL.ReadAsync(System.String, System.Action) :type filename: System.String :type cb: System.Action .. code-block:: csharp void ReadAsync(string filename, Action cb) .. dn:method:: ampl.com.IAMPL.ReadData(System.String) :type filename: System.String .. code-block:: csharp void ReadData(string filename) .. dn:method:: ampl.com.IAMPL.ReadDataAsync(System.String, System.Action) :type filename: System.String :type cb: System.Action .. code-block:: csharp void ReadDataAsync(string filename, Action cb) .. dn:method:: ampl.com.IAMPL.ReadTable(System.String) :type tableName: System.String .. code-block:: csharp void ReadTable(string tableName) .. dn:method:: ampl.com.IAMPL.Reset() .. code-block:: csharp void Reset() .. dn:method:: ampl.com.IAMPL.SetData(ampl.DataFrame, System.String) :type df: ampl.DataFrame :type setName: System.String .. code-block:: csharp void SetData(DataFrame df, string setName = null) .. dn:method:: ampl.com.IAMPL.SetErrorHandler(ampl.com.IErrorHandler) :type e: ampl.com.IErrorHandler .. code-block:: csharp void SetErrorHandler(IErrorHandler e) .. dn:method:: ampl.com.IAMPL.SetOption(System.String, System.Boolean) :type name: System.String :type value: System.Boolean .. code-block:: csharp void SetOption(string name, bool value) .. dn:method:: ampl.com.IAMPL.SetOption(System.String, System.Double) :type name: System.String :type value: System.Double .. code-block:: csharp void SetOption(string name, double value) .. dn:method:: ampl.com.IAMPL.SetOption(System.String, System.Int32) :type name: System.String :type value: System.Int32 .. code-block:: csharp void SetOption(string name, int value) .. dn:method:: ampl.com.IAMPL.SetOption(System.String, System.String) :type name: System.String :type value: System.String .. code-block:: csharp void SetOption(string name, string value) .. dn:method:: ampl.com.IAMPL.SetOutputHandler(ampl.com.IOutputHandler) :type o: ampl.com.IOutputHandler .. code-block:: csharp void SetOutputHandler(IOutputHandler o) .. dn:method:: ampl.com.IAMPL.Show(ampl.Entities.Entity[]) :type entities: ampl.Entities.Entity[] .. code-block:: csharp void Show(params Entity[] entities) .. dn:method:: ampl.com.IAMPL.Solve() .. code-block:: csharp void Solve() .. dn:method:: ampl.com.IAMPL.SolveAsync(System.Action) :type cb: System.Action .. code-block:: csharp void SolveAsync(Action cb) .. dn:method:: ampl.com.IAMPL.ToString() :rtype: System.String .. code-block:: csharp string ToString()