Initializing help system before first use

problem.evaluatecoef

problem.evaluatecoef


Purpose
Evaluate a coefficient using the current values of the variables
Synopsis
value = problem.evaluatecoef(rowindex, colindex)
Arguments
rowindex 
Row (i.e. xpress.constraint object, index, or name).
colindex 
Column (i.e. xpress.var object, index, or name).
value 
The result of the calculation.
Example
The following example sets the value of column 5 to 1.42 and then calculates the coefficient in row 2, column 3. If the coefficient depends on column 5, then a value of 1.42 will be used in the calculation.
p.chgvar(5, None, None, None, None,
           None, None, 1.42, None, None, None,
           None)
value = p.evaluatecoef(2, 3)

Further information
The values of the variables are obtained from the solution, or from the Value setting of an SLP variable (see problem.chgvar and problem.getvar).
Related topics

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