Instance

public class Instance

Represent an instance of a modelling entity

Fields

_impl

InstanceBase _impl

Constructors

Instance

Instance(InstanceBase impl)

Constructor

Methods

delete

public void delete()

entity

public Entity entity()
Returns:Get the algebraic entity this instance is part of

key

public TupleBase key()
Returns:The instance’s key

name

public String name()
Returns:The instance’s name

toString

public String toString()

Returns a string representation of the instance.

For constraints and objective instances it is equivalent to the AMPL statement:

expand instanceName;

For set and variable instances see the documentation for the specific class.