DeactivateModel method: OptInterface class
Syntax
DeactivateModel(ModelID)
Description
The DeactivateModel method detaches the solver from the specified model.
Parameters
| Parameter | Description |
|---|---|
|
ModelID |
Specify the name of the optimization model you want to deactivate. This must be the name of one of the models associated with the analytic type definition. |
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. |
Example
Local integer &result;
Local OptInterface &oi = CreateOptInterface();
&result = &oi.DeactivateModel("QE_PSA_MODEL");