VL 01: Introduction to GAMS Flashcards

1
Q

True or false?

The GAMS compiler does distinguish between upper- and lowercase letters.

A

False!

The GAMS compiler does NOT distinguish between upper- and lowercase letters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or false?

Multiword names are not allowed “New York”, use hyphens “New-York”.

A

True!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True or false?

Lines starting with an asterisks are comments.

A

True!

Important: The line has to start with the asterisk! You can’t comment within a statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Data

What dimensions do scalars, parameters and tables have?

A

Scalars: 0
Parameters: 1
Tables => 2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you implement a “if … then … “ condition?

A

If b is greater than 1.5, then assign value 2 to a:

a$(b>1.5) = 2

$(condition)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do you do an exponential?

A

**

How well did you know this?
1
Not at all
2
3
4
5
Perfectly