Initializing help system before first use

LoadQCQP(String, Int32, Int32, Char[], Double[], Double[], Double[], Int32[], Int32[], Int32[], Double[], Double[], Double[], Int32, Int32[], Int32[], Double[], Int32, Int32[], Int32[], Int32[], Int32[], Double[]) Method

Used to load a quadratic problem with quadratic side constraints into the Optimizer data structure. Such a problem may have quadratic terms in its objective function as well as in its constraints.

Namespace:  Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 45.01.02+1f9fd7ff9a8620394fec1839699751312debed40
Syntax
C#
public void LoadQCQP(
	string probname,
	int ncols,
	int nrows,
	char[] rowtype,
	double[] rhs,
	double[] rng,
	double[] objcoef,
	int[] start,
	int[] collen,
	int[] rowind,
	double[] rowcoef,
	double[] lb,
	double[] ub,
	int nobjqcoefs,
	int[] objqcol1,
	int[] objqcol2,
	double[] objqcoef,
	int nqrows,
	int[] qrowind,
	int[] nrowqcoef,
	int[] rowqcol1,
	int[] rowqcol2,
	double[] rowqcoef
)

Parameters

probname   String
A string of up to MAXPROBNAMELENGTH characters containing a name for the problem.
ncols   Int32
Number of structural columns in the matrix.
nrows   Int32
Number of rows in the matrix (not including the objective row). Objective coefficients must be supplied in the objcoef array, and the objective function should not be included in any of the other arrays.
rowtype   Char
Character array of length nrows containing the row types:
  • L: indicates a <= constraint (use this one for quadratic constraints as well);
  • E: indicates an = constraint;
  • G: indicates a >= constraint;
  • R: indicates a range constraint;
  • N: indicates a nonbinding constraint.
rhs   Double
Double array of length nrows containing the right hand side coefficients of the rows. The right hand side value for a range row gives the upper bound on the row.
rng   Double
Double array of length nrows containing the range values for range rows. Values for all other rows will be ignored. May be null if there are no ranged constraints. 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.
objcoef   Double
Double array of length ncols containing the objective function coefficients. This can be null to set all objective coefficients to 0 (zero).
start   Int32
Integer array containing the offsets in the rowind and rowcoef arrays of the start of the elements for each column. This array is of length ncols or, if collen is null, length ncols+1. If collen is null the extra entry of start, start[ncols], contains the position in the rowind and rowcoef arrays at which an extra column would start, if it were present. In C, this value is also the length of the rowind and rowcoef arrays.
collen   Int32
Integer array of length ncols containing the number of nonzero elements in each column. May be null if all elements are contiguous and start[ncols] contains the offset where the elements for column ncols+1 would start. This array is not required if the non-zero coefficients in the rowind and rowcoef arrays are continuous, and the start array has ncols+1 entries as described above. It may be null if not required.
rowind   Int32
Integer array containing the row indices for the nonzero elements in each column. If the indices are input contiguously, with the columns in ascending order, the length of the rowind is start[ncols-1]+collen[ncols-1] or, if collen is null, start[ncols].
rowcoef   Double
Double array containing the nonzero element values; length as for rowind.
lb   Double
Double array of length ncols containing the lower bounds on the columns. Use XPRS_MINUSINFINITY to represent a lower bound of minus infinity. If this is null then all lower bounds are 0 (zero).
ub   Double
Double array of length ncols containing the upper bounds on the columns. Use XPRS_PLUSINFINITY to represent an upper bound of plus infinity. It this is null then all upper bounds are infinite.
nobjqcoefs   Int32
Number of quadratic terms.
objqcol1   Int32
Integer array of size nobjqcoefs containing the column index of the first variable in each quadratic term.
objqcol2   Int32
Integer array of size nobjqcoefs containing the column index of the second variable in each quadratic term.
objqcoef   Double
Double array of size nobjqcoefs containing the quadratic coefficients.
nqrows   Int32
Number of rows containing quadratic matrices.
qrowind   Int32
Integer array of size nqrows, containing the indices of rows with quadratic matrices in them. Note that the rows are expected to be defined in rowtype as type L.
nrowqcoef   Int32
Integer array of size nqrows, containing the number of nonzeros in each quadratic constraint matrix.
rowqcol1   Int32
Integer array of size nqcelem, where nqcelem equals the sum of the elements in nrowqcoef (i.e. the total number of quadratic matrix elements in all the constraints). It contains the first column indices of the quadratic matrices. Indices for the first matrix are listed from 0 to nrowqcoef[0]-1, for the second matrix from nrowqcoef[0] to nrowqcoef[0]+ nrowqcoef[1]-1, etc.
rowqcol2   Int32
Integer array of size nqcelem, containing the second index for the quadratic constraint matrices.
rowqcoef   Double
Integer array of size nqcelem, containing the coefficients for the quadratic constraint matrices.
See Also

© 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.