ObjectiveInstance

public class ObjectiveInstance extends BasicInstance<ObjectiveInstanceBase>

Represents an objective instance.

All AMPL suffixes for an objective are available through methods with the same name in this class. See http://www.ampl.com/NEW/suffbuiltin.html for a list of the available suffixes.

All the accessors in this class throw a IllegalArgumentException if the instance has been deleted in the underlying AMPL interpreter.

Constructors

ObjectiveInstance

ObjectiveInstance(ObjectiveInstanceBase impl)

Methods

astatus

public String astatus()

Return the AMPL status

drop

public void drop()

Drop all instances of this objective, corresponding to the AMPL code:

drop objectiveName;

exitcode

public int exitcode()

Exit code returned by solver after most recent solve with this objective

Returns

Exit code

impl

ObjectiveInstanceBase impl()

message

public String message()

Result message returned by solver after most recent solve with this objective

minimization

public boolean minimization()

Return true if the objective is minimization, false otherwise

restore

public void restore()

Restore all instances of this objective, corresponding to the AMPL code:

restore objectiveName;

result

public String result()

Result string returned by solver after most recent solve with this objective

sstatus

public String sstatus()

Return the solver status

value

public double value()

Get the value of the objective instance