get_sensitivity_rhs, get_ptr_sensitivity_rhs, get_reduced_costs, get_ptr_reduced_costsReturns the sensitivity of the constraints and the variables. int get_sensitivity_rhs(lprec *lp, REAL *duals, REAL *dualsfrom, REAL *dualstill); int get_ptr_sensitivity_rhs(lprec *lp, REAL **ptr_duals, REAL **ptr_dualsfrom, REAL **ptr_dualstill); int get_reduced_costs(lprec *lp, REAL *duals); int get_ptr_reduced_costs(lprec *lp, REAL **ptr_duals); Return Value get_sensitivity_rhs, get_ptr_sensitivity_rhs, get_reduced_costs, get_ptr_reduced_costs return
TRUE (1) if the operation was successful. A return value of FALSE (0)
indicates an error. Parameters lp Pointer to previously created lp model. See return value of make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS duals An array that will contain the values of the dual variables aka reduced costs. ptr_duals The address of a pointer that will point to an array that will contain the values of the dual variables aka reduced costs. dualsfrom An array that will contain the values of the lower limits on the dual variables aka reduced costs. ptr_dualsfrom The address of a pointer that will point to an array that will contain the values of the lower limits of the dual variables aka reduced costs. dualstill An array that will contain the values of the upper limits on the dual variables aka reduced costs. ptr_dualstill The address of a pointer that will point to an array that will contain the values of the upper limits of the dual variables aka reduced costs. Remarks The get_sensitivity_rhs, get_ptr_sensitivity_rhs functions return
the values of the dual variables aka reduced costs and their limits. The get_reduced_costs, get_ptr_reduced_costs
function returns only the values of the dual variables aka reduced costs. It is
there for backwards compatibility. Example
See Also make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, is_feasible, get_objective, get_variables, get_ptr_variables, get_primal_solution, get_ptr_primal_solution, get_work_solution, get_ptr_work_solution, get_sensitivity_obj, get_ptr_sensitivity_obj, get_sensitivity_objex, get_ptr_sensitivity_objex, |