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".
Would someone give me some suggestions? Thank you very much.
Sincerely,
Guoyuan LI
MCP code: Endogenous relational opearations require model type "dnlp"
Re: MCP code: Endogenous relational opearations require model type "dnlp"
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= 4*t('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.
Besides, if so, how can I fix it for the following equations:
c1def.. c1 =e= 4*t('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.
Re: MCP code: Endogenous relational opearations require model type "dnlp"
Hi,
The equation mentioned in the error
reads
I guesss the is a typo an you might want to replace the "=" by a "+".
I hope this helps!
Fred
The equation mentioned in the error
Code: Select all
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
Code: Select all
rationkjdriver.. fkj1+fkj2+fkj3=fkj4-d('kj') =e= 0;
Code: Select all
...fkj3=fkj4...
I hope this helps!
Fred