get_constr_valueGets the value of a constraint according to provided variable values. REAL get_constr_value(lprec *lp, int row, int count, REAL *primsolution, int *nzindex); Return Value get_constr_value returns the value of the constraint as calculated with the provided variable values. Parameters lp Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI row The row for which the constraint value must be calculated. Must be between 1 and number of rows in the lp. count The number of items in primsolution and nzindex. primsolution The values of the variables. nzindex The variable indexes. Remarks The get_constr_value function returns the value of a constraint according to provided variable values. Example
See Also make_lp, copy_lp, read_lp, read_LP, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, get_constraints, get_ptr_constraints, get_variables, get_ptr_variables, get_primal_solution, get_ptr_primal_solution, get_var_primalresult |