XPRSaddgencons, XPRSaddgencons64
int XPRS_CC XPRSaddgencons(XPRSprob prob, int ncons, int ncols, int nvals, const int contype[], const int resultant[], const int colstart[], const int colind[], const int valstart[], const double val[]);
int XPRS_CC XPRSaddgencons64(XPRSprob prob, int ncons, XPRSint64 ncols, XPRSint64 nvals, const int contype[], const int resultant[], const XPRSint64 colstart[], const int colind[], const XPRSint64 valstart[], const double val[]);
prob
|
The current problem.
|
||||||||||
ncons
|
The number of general constraints to add.
|
||||||||||
ncols
|
The total number of input variables in general constraints that should be added.
|
||||||||||
nvals
|
The total number of constant values in general constraints that should be added.
|
||||||||||
contype
|
Integer array of length
ncons containing the types of the general constraints:
|
||||||||||
resultant
|
Integer array of length
ncons containing the indices of the output variables of the general constraints.
|
||||||||||
colstart
|
Integer array of length
ncons containing the start index of each general constraint in the
colind array.
|
||||||||||
colind
|
Integer array of length
ncols containing the input variables in all general constraints.
|
||||||||||
valstart
|
Integer array of length
ncons containing the start index of each general constraint in the
val array (may be
NULL if
ncoefs = 0).
|
||||||||||
val
|
Double array of length
nvals containing the constant values in all general constraints (may be
NULL if
ncoefs = 0).
|
Controls whether dual reductions may be applied to reduce the number of added variables and constraints.
|
int contype[] = {XPRS_GENCONS_MAX, XPRS_GENCONS_ABS}; int resultant[] = {2, 3}; int colstart[] = {0, 2}; int colind[] = {0, 1, 1}; int valstart[] = {0, 1}; double val[] = {5.0}; ... XPRSaddgencons(prob, 2, 3, 1, contype, resultant, colstart, colind, valstart, val); XPRSmipoptimize(prob,"");
© 2001-2025 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.