for all condition for multidimensional sets

Problems with syntax of GAMS
Post Reply
pseudocleft
User
User
Posts: 4
Joined: 1 year ago

for all condition for multidimensional sets

Post by pseudocleft »

Normally we write our constraint as Con (i) to satisfy the for all condition in our constraint and this constraint is applied for each i. But if our for all condition is for two-dimensional sets, how do we write it? Con (A(i,j)).. is this expression true and if this expression is true, it logically chooses i and j as common in constraints each time.
Fred
Posts: 372
Joined: 7 years ago

Re: for all condition for multidimensional sets

Post by Fred »

Hi,

The documentation of indexed equations shows examples of equations with more than one dimension.
I hope this helps! If not, please elaborate the question.

Best,
Fred
Post Reply