set_obj_fn, str_set_obj_fnSet the objective function (row 0) of the matrix. int set_obj_fn(lprec *lp, REAL *row); int str_set_obj_fn(lprec *lp, char *str_row); Return Value
set_obj_fn and str_set_obj_fn returns 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 row An array with column elements that contains the values of the objective function. str_row A string with column elements that contains the values of the objective function. Each element must be separated by space(s). Remarks
The set_obj_fn, str_set_obj_fn functions set all values of the
objective function at once. Example
See Also make_lp, copy_lp, read_lp, read_lp_file, read_LP, read_mps, read_MPS, add_constraint, add_column, get_column, get_row, get_mat, mat_elm |