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.
Methods¶
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
message¶
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;