Search found 4 matches

by pseudocleft
1 year ago
Forum: Modeling
Topic: creating set with alias
Replies: 1
Views: 5806

creating set with alias

image.png
image.png (8.97 KiB) Viewed 5806 times
how can i create this set. second j is alias of first j. Also, If i create a multidimensional set for main indices , do i have to create one more set for alias of main indices.
.
by pseudocleft
1 year ago
Forum: Syntax
Topic: Indice from Indice
Replies: 3
Views: 3874

Re: Indice from Indice

Ekran görüntüsü 2022-08-04 151824.png You do this via a mapping set: pf(p,f). You also need this for P_m: set m /m1*m3/, g /g1*g5/, p /p1*p5/, f /f1*f5/; set pf(p,f) / #p:#f /, mp(m,p) / m1.(p1,p2,p3), m2.(p2,p3,p4), m3.(p3,p4,p5) /; variable B(m,p,g), A(m,f,g); equation e(p,m,g); e(p,m,g)$mp(m,p)....
by pseudocleft
1 year ago
Forum: Syntax
Topic: for all condition for multidimensional sets
Replies: 1
Views: 6071

for all condition for multidimensional sets

Normally we write our constraint as Con (i) to satisfy the for all condition in our constraint and this constraint is applied for each i. But if our for all condition is for two-dimensional sets, how do we write it? Con (A(i,j)).. is this expression true and if this expression is true, it logically ...
by pseudocleft
1 year ago
Forum: Modeling
Topic: index set creation
Replies: 1
Views: 2817

index set creation

Ekran görüntüsü 2022-07-07 110640.png
Hello,

I have the problem as in the photo, but how can I create the set with O(i). I don't want to manually create one by one.