*optiminmaxcreate

Creates an objective for minmax optimizations.

Syntax

*optiminmaxcreate minmax_flag integer_array number_of_integers

Type

HyperMesh Tcl Modify

Description

Creates an objective for minmax optimizations.

Inputs

minmax_flag
A flag to distinguish between minimization and maximization.
integers_array
The ID of the integer array that contains the objective reference IDs. The integer array is created using the *createarray command. This should always be set to 1.
number_of_integers
The number of objective references in the array of integers.

Example

To create a minimization problem with 1 and 2 as objreference identifiers:

*createarray 2 1 2
*optiminmaxcreate 2 1 2

To create a maximization problem with 1 and 2 as objreference identifiers:

*createarray 2 1 2
*optiminmaxcredate 3 1 2

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}