Dear all,
I am using GAMS to solve one equilibrium problem with MCP formulation. Attached code is about the small example (I write the equation for each decision variable due to their relationship). However, I met one problem: Endogenous relational opearations require model type “dnlp”.

Untitled_23.gms (2.46 KB)
Would someone give me some suggestions? Thank you very much.
Sincerely,
Guoyuan LI
After searching for error 57, I doubt that if the value of variables in the power function, will it lead to the error: Endogenous relational operations require model type “dnlp”?
Besides, if so, how can I fix it for the following equations:
c1def… c1 =e= 4t(‘1’)(1+0.15*power(x1/c(‘1’),4)); (note: power function for x1)
x1def… x1 =e= fij1+fij2+fij3+fij4+fkj1+fkj2+fkj3+fkj4;
Thank you.
Hi,
The equation mentioned in the error
83 solve rs_transit using mcp;
**** $57,256
**** 57 Endogenous relational operations require model type "dnlp"
**** 256 Error(s) in analyzing solve statement.
**** The following MCP errors were detected in model rs_transit:
**** 57 equation rationkjdriver.. VAR operands relational or boolean
reads
rationkjdriver.. fkj1+fkj2+fkj3=fkj4-d('kj') =e= 0;
I guesss the
...fkj3=fkj4...
is a typo an you might want to replace the “=” by a “+”.
I hope this helps!
Fred