get_primal_solution, get_ptr_primal_solution, get_var_primalresultReturns the solution of the model. unsigned char get_primal_solution(lprec *lp, REAL *pv); unsigned char get_ptr_primal_solution(lprec *lp, REAL **ptr_pv); REAL get_var_primalresult(lprec *lp, int index); Return Value get_primal_solution, get_ptr_primal_solution 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, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI pv An array that will contain the value of the objective function (element 0), values of the constraints (elements 1 till Nrows), and the values of the variables (elements Nrows+1 till Nrows+NColumns). ptr_pv The address of a pointer that will point to an array that will contain the value of the objective function (element 0), values of the constraints (elements 1 till Nrows), and the values of the variables (elements Nrows+1 till Nrows+NColumns). index index of the constraint/variable. Remarks The get_primal_solution, get_ptr_primal_solution, get_var_primalresult
functions retrieve the values of the objective function, constraints and
variables. Example
See Also make_lp, read_lp, read_LP, read_lpt, read_LPT, read_mps, read_freemps, read_MPS, read_freeMPS, read_XLI, is_feasible, get_objective, get_working_objective, get_variables, get_ptr_variables, get_constraints, get_ptr_constraints, get_sensitivity_rhs, get_ptr_sensitivity_rhs, get_dual_solution, get_ptr_dual_solution, get_var_dualresult, get_sensitivity_obj, get_ptr_sensitivity_obj, get_sensitivity_objex, get_ptr_sensitivity_objex |