When I try to set and get the columns of a row the columns index changes. In the attached code i am adding a row with 4 columns and then retrieving the same. For the code attached below, the output looks like :
While the <index, coeff> pairs are same the contents of the input and output array has changed. I am assuming such a basic thing is probably not a bug.
What is the proper way to use the API so that my set and get arrays contain the same value.
regards, Som ======================================= int N = 4; glp_prob *primal=glp_create_prob();
glp_add_cols(primal,N); double row_cf[] = {3.0,5.0,7.0,9.0}; int set_indx[N+1],get_indx[N+1]; double set_coef[N+1],get_coef[N+1];