Initializing help system before first use

# loadmip

Purpose
Used to load a MIP problem into the Optimizer data structures.
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
`loadmip(
prob,
probname = "",
rowtype = NULL,
rhs = NULL,
rng = NULL,
objcoef = NULL,
start = NULL,
collen = NULL,
rowind = NULL,
rowcoef = NULL,
lb = NULL,
ub = NULL,
coltype = NULL,
entind = NULL,
limit = NULL,
settype = NULL,
setstart = NULL,
setind = NULL,
refval = NULL,
ncols = x_max_vec_length(objcoef, lb, ub),
nrows = x_max_vec_length(rowtype, rhs, rng),
nentities = x_max_vec_length(coltype, entind, limit),
nsets = x_max_vec_length(settype)
)`
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.
coltype | Character array of length nentities containing the entity types: B binary variables; May be NULL if all variables are continuous. 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 each set.
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).
nentities | Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
nsets | Number of SOS1 and SOS2 sets.

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.