0

How can I determine the cardinality of a set in GAMS? Is there a keyword for this in GAMS?

Suppose I have the following declaration:

SET y /1 * 10/ ;

I would like later in the model to make the asignment x = cardinality_of_y; How can I write this in GAMS?

Clement
  • 121
  • 4

1 Answers1

0

The operator card() does the job.

Clement
  • 121
  • 4