Initializing help system before first use

loadmiqcqp

Purpose
Used to load a mixed integer quadratic problem with quadratic constraints into the Optimizer data structure.
Such a problem may have quadratic terms in its objective function as well as in its constraints. Integer, binary, partial integer, semi-continuous and semi-continuous integer variables can be defined, together with sets of type 1 and 2. The reference row values for the set members are passed as an array rather than specifying a reference row.
Synopsis
loadmiqcqp(
prob,
probname,
rowtype,
rhs,
rng,
objcoef,
start,
collen,
rowind,
rowcoef,
lb,
ub,
objqcol1,
objqcol2,
objqcoef,
qrowind,
nrowqcoefs,
rowqcol1,
rowqcol2,
rowqcoef,
nentities,
nsets,
coltype,
entind,
limit,
settype,
setstart,
setind,
refval,
ncols = x_max_vec_length(objcoef, lb, ub),
nrows = x_max_vec_length(rowtype, rhs, rng),
nobjqcoefs = x_max_vec_length(objqcol1, objqcol2, objqcoef),
nqrows = x_max_vec_length(qrowind, nrowqcoefs)
)

Arguments
prob 
The current problem.
probname 
A string of up to MAXPROBNAMELENGTH characters containing a name for the problem.
rowtype 
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 array of length nrows containing the right hand side coefficients of the rows.
rng 
Double array of length nrows containing the range values for range rows.
objcoef 
Double array of length ncols containing the objective function coefficients.
start 
Integer array containing the offsets in the rowind and rowcoef arrays of the start of the elements for each column.
collen 
Integer array of length ncols containing the number of nonzero elements in each column.
rowind 
Integer array containing the row indices for the nonzero elements in each column.
rowcoef 
Double array containing the nonzero element values; length as for rowind.
lb 
Double array of length ncols containing the lower bounds on the columns.
ub 
Double array of length ncols containing the upper bounds on the columns.
objqcol1 
Integer array of size nobjqcoefs containing the column index of the first variable in each quadratic term.
objqcol2 
Integer array of size nobjqcoefs containing the column index of the second variable in each quadratic term.
objqcoef 
Double array of size nobjqcoefs containing the quadratic coefficients.
qrowind 
Integer array of size nqrows, containing the indices of rows with quadratic matrices in them.
nrowqcoefs 
Integer array of size nqrows, containing the number of nonzeros in each quadratic constraint matrix.
rowqcol1 
Integer array of size nqcelem, where nqcelem equals the sum of the elements in nrowqcoefs (i.e. the total number of quadratic matrix elements in all the constraints).
rowqcol2 
Integer array of size nqcelem, containing the second index for the quadratic constraint matrices.
rowqcoef 
Integer array of size nqcelem, containing the coefficients for the quadratic constraint matrices.
nentities 
Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
nsets 
Number of SOS1 and SOS2 sets.
coltype 
Character array of length nentities containing the entity types:
B
binary variables;
I
integer variables;
P
partial integer variables;
S
semi-continuous variables;
R
semi-continuous integer variables.
entind 
Integer array of length nentities containing the column indices of the MIP entities.
limit 
Double array of length nentities 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).
settype 
Character array of length nsets containing the set types:
1
SOS1 type sets;
May be NULL if not required.
2
SOS2 type sets.
setstart 
Integer array containing the offsets in the setind and refval arrays indicating the start of the sets.
setind 
Integer array of length setstart[nsets]-1 containing the columns in each set.
refval 
Double array of length setstart[nsets]-1 containing the reference row entries for each member of the sets.
ncols 
Number of structural columns in the matrix.
nrows 
Number of rows in the matrix (not including the objective row).
nobjqcoefs 
Number of quadratic terms.
nqrows 
Number of rows containing quadratic matrices.
Return value
The input argument prob.
Further information
Please refer to the C documentation for more details.

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