Initializing help system before first use

# GetGenCons(GenConsType[], Int32[], Int64[], Int32[], Int64, Int64, Int64[], Double[], Int64, Int64, Int32, Int32) Method

Returns the general constraints y = f(x1, ..., xn, c1, ..., cm) in a given range.
Namespace: Optimizer
Assembly: xprsdn (in xprsdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
C#

    public void GetGenCons(
    	GenConsType[] contype,
    	int[] resultant,
    	long[] colstart,
    	int[] colind,
    	long maxcols,
    	out long p_ncols,
    	long[] valstart,
    	double[] val,
    	long maxvals,
    	out long p_nvals,
    	int first,
    	int last
    )

#### Parameters

contype GenConsType
  An integer array of length last-first+1 which will be filled with the types of the general constraints:
  - XPRS_GENCONS_MAX (0): indicates a maximum constraint;
  - XPRS_GENCONS_MIN (1): indicates a minimum constraint;
  - XPRS_GENCONS_AND (2): indicates an and constraint.
  - XPRS_GENCONS_OR (3): indicates an or constraint;
  - XPRS_GENCONS_ABS (4): indicates an absolute value constraint.
  May be null if not required.
resultant Int32
  Integer array which will be filled with the indices of the output variables y. It must be of length last-first+1. May be null if not required.
colstart Int64
  Integer array of length last-first+2 which will be filled with the start index of each general constraint in the colind array. May be null if not required.
colind Int32
  Integer array which will be filled with the indices of the input variables xi. May be null if not required.
maxcols Int64
  Maximum number of input columns to be retrieved.
p_ncols Int64
  Pointer to return the number of input columns in the colind array. If the number of input columns is greater than maxcols, then only maxcols elements will be returned. May be null if not required.
valstart Int64
  Integer array of length last-first+2 which will be filled with the start index of each general constraint in the val array. May be null if not required.
val Double
  Integer array which will be filled with the constant values ci. May be null if not required.
maxvals Int64
  Maximum number of constant values to be retrieved.
p_nvals Int64
  Pointer to return the number of constant values in the val array. If the number of constant values is greater than maxvals, then only maxvals elements will be returned.May be null if not required.
first Int32
  First general constraint in the range.
last Int32
  Last general constraint in the range.

See Also

#### Reference

XPRSprob Class
GetGenCons Overload
Optimizer Namespace
Parent Topic GetGenCons 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.