Search found 3 matches

by romyn
7 months ago
Forum: Syntax
Topic: How to write this constraint
Replies: 4
Views: 515

Re: How to write this constraint

Essentially what im trying to achieve is this: s(j+1) =g= c(i,j) fyp.gms s(j+2) =g= c(i,j) s(j+3) =g= c(i,j) s(j+4) =g= c(i,j) . . . until we reach the end of set j I tried s(j+1) and s(j++1) but no matter how you define it, gams is not allowing me to input n as a set or scaler (in the form of a loo...
by romyn
7 months ago
Forum: Syntax
Topic: How to write this constraint
Replies: 4
Views: 515

Re: How to write this constraint

Essentially I am trying to achieve this:

s(j+1) >= c(i,j)
s(j+n) >= c(i,j)
s(j+n) >= c(i,j)
by romyn
7 months ago
Forum: Syntax
Topic: How to write this constraint
Replies: 4
Views: 515

How to write this constraint

Hello I am finding difficulty in modeling this constrain, your help would be much appreciated: s(j+n) >= c(i,j) for every i where n= 1,2,3,4,5...N-j s(j) is a defined parameter c(i,j) is a defined variable i and j are defined sets N is equal to last component of set j how can I index j+n and how to ...