ActivateObjective method: OptInterface class

Syntax

ActivateObjective(Model_Name, Objective_Name)

Description

Use the ActivateObjective method to activate the specified objective for an optimization model.

Parameters

Parameter Description

Model_Name

Specify the name of the model.

Objective_Name

Specify the name of the objective.

Returns

This method returns a constant value. Valid values are:

Value Description

%OptInter_Success

Returned if method succeeds.

%OptInter_Fail

Returned if the solver fails to solve the problem.