Hello,

I have a model that I would like to solve with the CNS solver. Indeed, I’ve gone through three solvers (CNS, MCP and NLP) for that model (see it in attachment). For my little experience on GAMS, I observed that with NLP solver, when the model works correctly, the process windows will show whether, “optimal solution. There are no superbasic variables.” Or “** Optimal solution. Reduced gradient less than tolerance.”. I’ve always thought that “** Optimal solution. Reduced gradient less than tolerance.” Means something went wrong but I don’t know why the status turns from “There are no superbasic variables” to “Reduced gradient less than tolerance.” (may someone tell me something about this?).

Concerning the CNS solver, I’ve been searching on internet how to correct the following error “** Error in Square System: Pivot too small.” Unfortunately, I’ve not got any interesting document. Paying attention to the equation bloc, one equation shows DEPND. That is “eq_theta” for AFR. The same issue comes at the variable “E” for AFR. However, when I change the solver to MCP, everything works correctly. With NLP, I rather obtained “** Optimal solution. Reduced gradient less than tolerance.”

Therefore, I highly think something is going wrong with my model. I want to know how to carry on the diagnostic.

Can someone give me any relevant reference on CNS that will explain me step by step (with example) how to build a CNS model? Also, for the NLP solver when the status turns from “There are no superbasic variables” to “Reduced gradient less than tolerance”. Besides, how can I understand the DEPND appearance?

MEP4.gms (3.33 KB)