MCP code: Endogenous relational opearations require model type "dnlp"

Problems with syntax of GAMS
Post Reply
lilingran
User
User
Posts: 2
Joined: 3 years ago

MCP code: Endogenous relational opearations require model type "dnlp"

Post by lilingran »

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".
image.png
Untitled_23.gms
Example code
(2.46 KiB) Downloaded 215 times
Would someone give me some suggestions? Thank you very much.

Sincerely,
Guoyuan LI
lilingran
User
User
Posts: 2
Joined: 3 years ago

Re: MCP code: Endogenous relational opearations require model type "dnlp"

Post by lilingran »

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.
Fred
Posts: 373
Joined: 7 years ago

Re: MCP code: Endogenous relational opearations require model type "dnlp"

Post by Fred »

Hi,

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
reads

Code: Select all

rationkjdriver.. fkj1+fkj2+fkj3=fkj4-d('kj') =e= 0;
I guesss the

Code: Select all

...fkj3=fkj4...
is a typo an you might want to replace the "=" by a "+".

I hope this helps!

Fred
Post Reply