Overview | Group | Tree | Graph | Index | Concepts |
The routine CPXchgsense
is used to change the sense of a
set of linear constraints of a CPLEX problem object.
When changing the sense of a
row to ranged, CPXchgsense
sets the corresponding range value
to 0 (zero). The routine
CPXchgrngval
can then be
used to change the range value.
Example
status = CPXchgsense (env, lp, cnt, indices, sense);
sense[i] | = 'L' | The new sense is ≤ |
sense[i] | = 'E' | The new sense is = |
sense[i] | = 'G' | The new sense is ≥ |
sense[i] | = 'R' | The constraint is ranged |
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
cnt | An integer that indicates the total number of linear constraints to be changed, and thus represents the length of the arrays |
indices | An array of length |
sense | An array of length |