kind request: Setting two variables equal in GAMS

Problems with syntax of GAMS
Post Reply
somang0526
User
User
Posts: 1
Joined: 10 months ago

kind request: Setting two variables equal in GAMS

Post by somang0526 » 6 months ago

Hi. :)

Hope you are having a good week.

I'm a masters student in simulation modelling. (Distillation column network synthesis)

I would like to set two variables equal to each other in GAMS.

"Flow rates of Mass Separating Agent in Mass Exchange Network" = "Flow rates of Mass Separating Agent in Regeneration Network"

In GAMS, I can rewrite above statement as following:

"FlowMSAsMEN(J,K) =E= FlowMSAsREG(RJ,KR)

but because they have different indices, GAMS does't allow that.

Would you kindly assist me with the syntax? If there are any good way of doing such job in GAMS, Would you please let me know?

Kind regards
Somang Kim.

Manassaldi
User
User
Posts: 71
Joined: 1 year ago
Location: Rosario - Argentina

Re: kind request: Setting two variables equal in GAMS

Post by Manassaldi » 6 months ago

Hi,
what is J, K, RJ and KR?
Can you explain what each set means?

An alternative can be:

eq(J,K,RJ,KR)$(sameas(J,RJ) and sameas(K,KR)).. FlowMSAsMEN(J,K) =E= FlowMSAsREG(RJ,KR);

Bye

Post Reply