AMPL_OBJECTIVE#

group AMPL_OBJECTIVE

Functions

AMPL_ERRORINFO *AMPL_ObjectiveSense(AMPL *ampl, const char *entityname, int *sense)#

Get the sense of this objective.

Parameters:
  • ampl – Pointer to the AMPL struct.

  • entityname – Name of objective as string.

  • sense – 0 if maximize, else minimize (pointer to int).

Returns:

Pointer to the AMPL_ERRORINFO struct.