VariableInstance#

class ampl.VariableInstance : ampl.Instance#

Represents a variable instance and allows access to all the AMPL suffixes of the related instance.

For documentation on the properties see :dn:class:ampl.Entities.Variable.

Public Functions

string GetExpand ()#

Get the expand message of this instance.

Equivalent to the AMPL statement: expand instanceName;

Return:

A string with the expand message of this instance.

Properties

Entities.EntityBase Entity { get; set; }#

Gets the parent entity.