Hi Gurobi community,
I'm using gurobi to solve a LP. I know a feasible solution which is very near optimal, so I want to set this solution as the starting point by using the paremeter "GRB_DoubleAttr_Start".
The code I write is:
coeff_vars[i][k][j].set(GRB_DoubleAttr_Start, coefficient[i][k][j]);
However, when I try to check whether I input the correct starting point, I find I can't output the value of the variable by using
cout << coeff_vars[i][k][j].get(GRB_DoubleAttr_X)<<" ";
Does it mean I don't input the starting point successfully? How could I output the value of the variables in this case?
Thanks
Bo