The routine CPXchgsense()
is used to change the sense of a set of constraints of a CPLEX problem object. When changing the sense of a row to ranged, CPXchgsense()
sets the corresponding range value to 0. The routine CPXchgrngval
()
can then be used to change the range value.
The routine returns a zero on success, and a nonzero if an error occurs.
int CPXchgsense (CPXCENVptr env, CPXLPptr lp, int cnt, const int *indices, const char *sense); |
The pointer to the CPLEX environment as returned by CPXopenCPLEX()
.
A pointer to a CPLEX problem object as returned by CPXcreateprob()
.
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 |
status = CPXchgsense (env, lp, cnt, indices, sense); |