problem.delgencons
problem.delgencons |
Purpose
Delete general constraints from a problem.
Synopsis
problem.delgencons(mindex)
Argument
mindex
|
An integer array containing the general constraints to delete.
|
Example
In this example, general constraints
0 and
2 are deleted from the problem:
mindex = [0, 2] prob.delgencons(mindex)
Further information
After general constraints have been deleted from a problem, the indices of the remaining constraints are reduced down so that the general constraints are always numbered from
0 to
prob.attributes.gencons - 1 where
prob.attributes.gencons contains the number of non-deleted general constraints in the problem.
Related topics