XPRSloadglobal, XPRSloadglobal64
XPRSloadglobal, XPRSloadglobal64 |
int XPRS_CC XPRSloadglobal(XPRSprob prob, const char *probname, int ncol, int nrow, const char qrtype[], const double rhs[], const double range[], const double obj[], const int mstart[], const int mnel[], const int mrwind[], const double dmatval[], const double dlb[], const double dub[], int ngents, int nsets, const char qgtype[], const int mgcols[], const double dlim[], const char qstype[], const int msstart[], const int mscols[], const double dref[]);
int XPRS_CC XPRSloadglobal64(XPRSprob prob, const char *probname, int ncol, int nrow, const char qrtype[], const double rhs[], const double range[], const double obj[], const XPRSint64 mstart[], const int mnel[], const int mrwind[], const double dmatval[], const double dlb[], const double dub[], int ngents, int nsets, const char qgtype[], const int mgcols[], const double dlim[], const char qstype[], const XPRSint64 msstart[], const int mscols[], const double dref[]);
prob
|
The current problem.
|
||||||||||
probname
|
A string of up to
MAXPROBNAMELENGTH characters containing a name for the problem.
|
||||||||||
ncol
|
Number of structural columns in the matrix.
|
||||||||||
nrow
|
Number of rows in the matrix not (including the objective row). Objective coefficients must be supplied in the
obj array, and the objective function should not be included in any of the other arrays.
|
||||||||||
qrtype
|
Character array of length
nrow containing the row types:
|
||||||||||
rhs
|
Double array of length
nrow containing the right hand side coefficients. The right hand side value for a range row gives the
upper bound on the row.
|
||||||||||
range
|
Double array of length
nrow containing the range values for range rows. Values for all other rows will be ignored. May be
NULL if not required. The lower bound on a range row is the right hand side value minus the range value. The sign of the range value is ignored - the absolute value is used in all cases.
|
||||||||||
obj
|
Double array of length
ncol containing the objective function coefficients.
|
||||||||||
mstart
|
Integer array containing the offsets in the
mrwind and
dmatval arrays of the start of the elements for each column. This array is of length
ncol or, if
mnel is
NULL, length
ncol+1. If
mnel is
NULL, the extra entry of
mstart,
mstart[ncol], contains the position in the
mrwind and
dmatval arrays at which an extra column would start, if it were present. In C, this value is also the length of the
mrwind and
dmatval arrays.
|
||||||||||
mnel
|
Integer array of length
ncol containing the number of nonzero elements in each column. May be
NULL if not required. This array is not required if the non-zero coefficients in the
mrwind and
dmatval arrays are continuous, and the
mstart array has
ncol+1 entries as described above. It may be
NULL if not required.
|
||||||||||
mrwind
|
Integer arrays containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, then the length of
mrwind is
mstart[ncol-1]+mnel[ncol-1] or, if
mnel is
NULL,
mstart[ncol].
|
||||||||||
dmatval
|
Double array containing the nonzero element values length as for
mrwind.
|
||||||||||
dlb
|
Double array of length
ncol containing the lower bounds on the columns. Use
XPRS_MINUSINFINITY to represent a lower bound of minus infinity.
|
||||||||||
dub
|
Double array of length
ncol containing the upper bounds on the columns. Use
XPRS_PLUSINFINITY to represent an upper bound of plus infinity.
|
||||||||||
ngents
|
Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
|
||||||||||
nsets
|
Number of SOS1 and SOS2 sets.
|
||||||||||
qgtype
|
Character array of length
ngents containing the entity types:
|
||||||||||
mgcols
|
Integer array of length
ngents containing the column indices of the global entities.
|
||||||||||
dlim
|
Double array of length
ngents containing the integer limits for the partial integer variables and lower bounds for semi-continuous and semi-continuous integer variables (any entries in the positions corresponding to binary and integer variables will be ignored). May be
NULL if not required.
|
||||||||||
qstype
|
Character array of length
nsets containing the set types:
May be
NULL if not required.
|
||||||||||
msstart
|
Integer array containing the offsets in the
mscols and
dref arrays indicating the start of the sets. This array is of length
nsets+1, the last member containing the offset where set
nsets+1 would start. May be
NULL if not required.
|
||||||||||
mscols
|
Integer array of length
msstart[nsets]-1 containing the columns in each set. May be
NULL if not required.
|
||||||||||
dref
|
Double array of length
msstart[nsets]-1 containing the reference row entries for each member of the sets. May be
NULL if not required.
|
Number of extra columns to be allowed for.
|
|
Number of extra matrix elements to be allowed for.
|
|
Number of extra global entities to be allowed for.
|
|
Number of extra elements to allow for in presolve.
|
|
Number of extra rows to be allowed for.
|
|
Status for nonbinding rows.
|
|
Type of scaling.
|
Double
Tolerance on matrix elements.
|
|
Minimum gap between reference row entries.
|
minimize: | x + 2y | ||
subject to: | 3x + 2y | ≤ | 400 |
x + 3y | ≤ | 200 |
char probname[] = "globalEx"; int ncol = 2, nrow = 2; char qrtype[] = {'L','L'}; double rhs[] = {400.0, 200.0}; int mstart[] = {0, 2, 4}; int mrwind[] = {0, 1, 0, 1}; double dmatval[] = {3.0, 1.0, 2.0, 3.0}; double objcoefs[] = {1.0, 2.0}; double dlb[] = {0.0, 0.0}; double dub[] = {200.0, 200.0}; int ngents = 2; int nsets = 0; char qgtype[] = {"I","I"}; int mgcols[] = {0,1}; ... XPRSloadglobal(prob, probname, ncol, nrow, qrtype, rhs, NULL, objcoefs, mstart, NULL, mrwind, dmatval, dlb, dub, ngents, nsets, qgtype, mgcols, NULL, NULL, NULL, NULL, NULL);
© 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.