Hello everyone.
I would like to know if it is possible to retrieve the solving status after running a model. For instance, if I want to check whether the obtained solution is an optimal or feasible, what snippet should I place in?
ampl.solve();
if (???) // check optimality
cout<<“Optimal solution found”<<endl;
else if (???) // check feasibility
cout<<“Feasible solution found”<<endl;
else // check infeasibility
cout<<“No feasible solution found”<<endl;
Thanks and best regards.