XPRSaddgencons, XPRSaddgencons64
XPRSaddgencons, XPRSaddgencons64 |
int XPRS_CC XPRSaddgencons(XPRSprob prob, int ngencons, int ncols, int nvals, const int type[], const int resultant[], const int colstart[], const int col[], const int valstart[], const double val[]);
int XPRS_CC XPRSaddgencons64(XPRSprob prob, int ngencons, XPRSint64 ncols, XPRSint64 nvals, const int type[], const int resultant[], const XPRSint64 colstart[], const int col[], const XPRSint64 valstart[], const double val[]);
prob
|
The current problem.
|
||||||||||
ngencons
|
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.
|
||||||||||
type
|
Integer array of length
ngencons containing the types of the general constraints:
|
||||||||||
resultant
|
Integer array of length
ngencons containing the indices of the output variables of the general constraints.
|
||||||||||
colstart
|
Integer array of length
ngencons containing the start index of each general constraint in the
col array.
|
||||||||||
col
|
Integer array of length
ncols containing the input variables in all general constraints.
|
||||||||||
valstart
|
Integer array of length
ngencons containing the start index of each general constraint in the
val array (may be
NULL if
nvals = 0).
|
||||||||||
val
|
Double array of length
nvals containing the constant values in all general constraints (may be
NULL if
nvals = 0).
|
Controls whether dual reductions may be applied to reduce the number of added variables and constraints.
|
int type[] = {XPRS_GENCONS_MAX, XPRS_GENCONS_ABS}; int resultant[] = {2, 3}; int colstart[] = {0, 2}; int col[] = {0, 1, 1}; int valstart[] = {0, 1}; double val[] = {5.0}; ... XPRSaddgencons(prob, 2, 3, 1, type, resultant, colstart, col, valstart, val); XPRSmipoptimize(prob,"");
© 2001-2020 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.