IParameter Interface ==================== Namespace :dn:ns:`ampl.Entities` Assemblies * AMPL ---- .. contents:: :local: Syntax ------ .. code-block:: csharp public interface IParameter .. dn:interface:: ampl.Entities.IParameter :hidden: .. dn:interface:: ampl.Entities.IParameter Methods ------- .. dn:interface:: ampl.Entities.IParameter :noindex: :hidden: .. dn:method:: ampl.Entities.IParameter.AsArray() :rtype: ampl.VariantRef[] .. code-block:: csharp VariantRef[] AsArray() .. dn:method:: ampl.Entities.IParameter.Get(System.Object[]) :type index: System.Object[] :rtype: ampl.VariantRef .. code-block:: csharp VariantRef Get(params object[] index) .. dn:method:: ampl.Entities.IParameter.Get(ampl.Tuple) :type t: ampl.Tuple :rtype: ampl.VariantRef .. code-block:: csharp VariantRef Get(Tuple t = null) .. dn:method:: ampl.Entities.IParameter.GetEnumerator() :rtype: System.Collections.Generic.IEnumerator{ampl.VariantRef} .. code-block:: csharp IEnumerator GetEnumerator() .. dn:method:: ampl.Entities.IParameter.GetValues() :rtype: ampl.DataFrame .. code-block:: csharp DataFrame GetValues() .. dn:method:: ampl.Entities.IParameter.GetValues(System.String[]) :type suffixes: System.String[] :rtype: ampl.DataFrame .. code-block:: csharp DataFrame GetValues(params string[] suffixes) .. dn:method:: ampl.Entities.IParameter.Set(System.Object) :type value: System.Object .. code-block:: csharp void Set(object value) .. dn:method:: ampl.Entities.IParameter.Set(ampl.Tuple, System.Double) :type index: ampl.Tuple :type value: System.Double .. code-block:: csharp void Set(Tuple index, double value) .. dn:method:: ampl.Entities.IParameter.Set(ampl.Tuple, System.String) :type index: ampl.Tuple :type value: System.String .. code-block:: csharp void Set(Tuple index, string value) .. dn:method:: ampl.Entities.IParameter.SetValues(System.Double[]) :type values: System.Double[] .. code-block:: csharp void SetValues(double[] values) .. dn:method:: ampl.Entities.IParameter.SetValues(System.Double[], System.Double[], System.Double[], System.Boolean) :type row_indices: System.Double[] :type col_indices: System.Double[] :type data: System.Double[] :type transpose: System.Boolean .. code-block:: csharp void SetValues(double[] row_indices, double[] col_indices, double[] data, bool transpose) .. dn:method:: ampl.Entities.IParameter.SetValues(System.String[]) :type values: System.String[] .. code-block:: csharp void SetValues(string[] values) .. dn:method:: ampl.Entities.IParameter.SetValues(System.String[], System.String[], System.Double[], System.Boolean) :type row_indices: System.String[] :type col_indices: System.String[] :type data: System.Double[] :type transpose: System.Boolean .. code-block:: csharp void SetValues(string[] row_indices, string[] col_indices, double[] data, bool transpose) .. dn:method:: ampl.Entities.IParameter.SetValues(ampl.DataFrame) :type data: ampl.DataFrame .. code-block:: csharp void SetValues(DataFrame data) .. dn:method:: ampl.Entities.IParameter.SetValues(ampl.Tuple[], System.Double[]) :type indices: ampl.Tuple[] :type values: System.Double[] .. code-block:: csharp void SetValues(Tuple[] indices, double[] values) .. dn:method:: ampl.Entities.IParameter.SetValues(ampl.Tuple[], System.String[]) :type indices: ampl.Tuple[] :type values: System.String[] .. code-block:: csharp void SetValues(Tuple[] indices, string[] values) .. dn:method:: ampl.Entities.IParameter.ToString() :rtype: System.String .. code-block:: csharp string ToString() Properties ---------- .. dn:interface:: ampl.Entities.IParameter :noindex: :hidden: .. dn:property:: ampl.Entities.IParameter.HasDefault :rtype: System.Boolean .. code-block:: csharp bool HasDefault { get; } .. dn:property:: ampl.Entities.IParameter.Indexarity :rtype: System.Int32 .. code-block:: csharp int Indexarity { get; } .. dn:property:: ampl.Entities.IParameter.IndexingSets :rtype: System.String[] .. code-block:: csharp string[] IndexingSets { get; } .. dn:property:: ampl.Entities.IParameter.IsScalar :rtype: System.Boolean .. code-block:: csharp bool IsScalar { get; } .. dn:property:: ampl.Entities.IParameter.IsSymbolic :rtype: System.Boolean .. code-block:: csharp bool IsSymbolic { get; } .. dn:property:: ampl.Entities.IParameter.Item[System.Object[]] :type index: System.Object[] :rtype: ampl.Variant .. code-block:: csharp Variant this[params object[] index] { get; set; } .. dn:property:: ampl.Entities.IParameter.Name :rtype: System.String .. code-block:: csharp string Name { get; } .. dn:property:: ampl.Entities.IParameter.NumInstances :rtype: System.Int32 .. code-block:: csharp int NumInstances { get; }