Search found 3 matches
- 3 years ago
- Forum: Modeling
- Topic: model a condition in the objective function
- Replies: 1
- Views: 1395
model a condition in the objective function
hi, I would like to model a condition in my objective function. I explain the problem to make myself better understood. I would like to model how energy exchange works in place. this says that if the emergency introduced into the network (Es) is less than that taken from the network (Ep), it will ap...
- 3 years ago
- Forum: Modeling
- Topic: model a constraint
- Replies: 1
- Views: 1275
model a constraint
I would like to go and model this constraint but I don't know how to write it on gams. the variable considered is a binary variable X (j, d, h) which is equal to one if the machinery j on day d and at hour h is active. I would like to model a constraint that tells me that if X (j, d, h) = 1 this var...
Subsets
hi, i'm new to the forum and i just started using gams and i don't know how to be able to write an index dependent on another. that is, I have my index j of values {1,2,3,4,5}, and I would like to write an index k (i) whose values change as i changes. so for example I have k (1) of values {1,2...