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 
Integer index of the row.
colindex 
Integer index of the column.
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