Initializing help system before first use

# loadqp

Purpose
Used to load a quadratic problem into the Optimizer data structure.
Such a problem may have quadratic terms in its objective function, although not in its constraints.
Synopsis
`loadqp(
prob,
probname = "",
rowtype = NULL,
rhs = NULL,
rng = NULL,
objcoef = NULL,
start = NULL,
collen = NULL,
rowind = NULL,
rowcoef = NULL,
lb = NULL,
ub = NULL,
objqcol1 = NULL,
objqcol2 = NULL,
objqcoef = NULL,
ncols = x_max_vec_length(objcoef, lb, ub),
nrows = x_max_vec_length(rowtype, rhs, rng),
nobjqcoefs = x_max_vec_length(objqcol1, objqcol2, objqcoef)
)`
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; May be NULL if the problem contains no rows. 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.
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.

Return value
The input argument prob.
Further information
Please refer to the C documentation for more details.
Parent Topic R interface reference manual

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