for all condition for multidimensional sets

Problems with syntax of GAMS
Post Reply
pseudocleft
User
User
Posts: 4
Joined: 2 months ago

for all condition for multidimensional sets

Post by pseudocleft » 2 months ago

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: 313
Joined: 6 years ago

Re: for all condition for multidimensional sets

Post by Fred » 1 month ago

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