Initializing help system before first use

problem.slpgetcoefstr

Purpose
Retrieve a single matrix coefficient as a formula in a character string
Synopsis
formula, factor = problem.slpgetcoefstr(row, col)
Arguments
row 
The row (i.e. xpress.constraint object, index, or name) for the coefficient.
col 
The column (i.e. xpress.var object, index, or name) for the coefficient.
Return value
formula 
The formula string.
factor 
The constant factor multiplying the formula in the coefficient.
Example
The following example retrieves the formula for the coefficient of column 3 in in row 2:
formula, _ = problem.slpgetformulastr(2, 3)
  print("Formula is {}".format(formula))
Further information
If the requested coefficient is constant, then factor will be set to 1.0 and the value will be formatted in formula.
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.