Initializing help system before first use

# LoadMIP(String, Int32, Int32, Char[], Double[], Double[], Double[], Int32[], Int32[], Int32[], Double[], Double[], Double[], Int32, Int32, Char[], Int32[], Double[], Char[], Int32[], Int32[], Double[]) Method

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.
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public void LoadMIP(
    	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 nentities,
    	int nsets,
    	char[] coltype,
    	int[] entind,
    	double[] limit,
    	char[] settype,
    	int[] setstart,
    	int[] setind,
    	double[] refval
    )

#### Parameters

probname String
  A string of up to MAXPROBNAMELENGTH characters containing a name for the problem. If probname is null, the problem name will be an empty string.
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;
  - E: indicates an = constraint;
  - G: indicates a >= constraint;
  - R: indicates a range constraint;
  - N: indicates a nonbinding constraint.
  May be null if the problem contains no rows.
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. May be null if the problem contains no rows.
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 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.
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 contains one entry for each column, plus one more if collen is null. If collen is null, the last entry of start contains the position in the rowind and rowcoef arrays at which an extra column would start, if it were present. This value is also the length of the rowind and rowcoef arrays. May be null if the problem contains no coefficients.
collen Int32
  Integer array of length ncols 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 rowind and rowcoef arrays are contiguous, and the start array has an additional entry as described above.
rowind Int32
  Integer array containing the row indices for the nonzero elements in each column. May be null if the problem contains no coefficients. If the indices are input contiguously, with the columns in ascending order, the length of the rowind array is found by adding the start entry for the last column to the collen entry for the last column, or if collen is null, by the additional entry at the end of start.
rowcoef Double
  Double array containing the nonzero element values; length as for rowind. May be null if the problem contains no coefficients.
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. If this is null then all upper bounds are infinite.
nentities Int32
  Number of binary, integer, semi-continuous, semi-continuous integer and partial integer entities.
nsets Int32
  Number of SOS1 and SOS2 sets.
coltype Char
  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.
  May be null if all variables are continuous.
entind Int32
  Integer array of length nentities containing the column indices of the MIP entities. May be null if the problem contains no entities.
limit Double
  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). May be null if not required.
settype Char
  Character array of length nsets containing the set types:
  - 1: SOS1 type sets;
  - 2: SOS2 type sets.
  May be null if not required.
setstart Int32
  Integer array containing the offsets in the setind and refval arrays indicating the start of each set. This array has one entry for each set plus one extra entry containing the offset where an additional set would start, if it were present. May be null if not required.
setind Int32
  Integer array of length setstart[nsets]-1 containing the columns in each set. May be null if not required.
refval Double
  Double array of length setstart[nsets]-1 containing the reference row entries for each member of the sets. These define the order for SOS2 constraints and may be used in branching for both types. May be null if not required.

See Also

#### Reference

XPRSprob Class
LoadMIP Overload
Optimizer Namespace
Parent Topic LoadMIP Method

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