Initializing help system before first use

getcoeffs

Purpose
Get all variable coefficients of a constraint.
Synopsis
procedure getcoeffs(c:linctr, a:array(set of mpvar) of real, s:set of mpvar)
Arguments
A linear constraint
An array of reals indiced by decision variables
A set of decision variables
Further information
1. This procedure returns in the parameter a the coefficients of all variables of a constraint. After calling this procedure, the coefficient of variable v of constraint c is a(v). The set s is used to specify for which variables the coefficients have to be retrieved (if this set is empty all variables are considered).
2. If set s is empty all cells of array a are updated ( i.e. cells corresponding to variables not included in constraint c are set to 0). Otherwise only cells corresponding to elements of s are modified.
Related topics

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