Defining vaiables as vector
Posted: Sat May 01, 2021 11:53 am
Hi all.
I'm quite new to GAMS and trying to solve an interesting problem. A part of it consists of defining a specific vector. I want to define a vector that contains 8 variables in it. For example, the vector A with 8 variables as x1, x2,...x8. The variables should be able to take values depending on conditions that I provide later in the code. How to define such a vector? Also if possible, can this be applied to matrices as well?
I'm quite new to GAMS and trying to solve an interesting problem. A part of it consists of defining a specific vector. I want to define a vector that contains 8 variables in it. For example, the vector A with 8 variables as x1, x2,...x8. The variables should be able to take values depending on conditions that I provide later in the code. How to define such a vector? Also if possible, can this be applied to matrices as well?