Search found 4 matches

by Menna Khaled
6 years ago
Forum: Solvers
Topic: exclude expression from product if denumerator = 0
Replies: 5
Views: 4892

Re: exclude expression from product if denumerator = 0

Also I'd be very glad if you could help me with this: I tried to run it and observed the output ( which is infeasible although I have a guaranteed feasible scenario ), I found that: defshare(1,2).. (0)*B(1,2,1) + (0)*B(1,2,2) + (0)*B(1,2,3) + (0)*B(1,2,4) + (0)*B(1,2,5) + (0)*B(1,2,6) - 0.9296029397...
by Menna Khaled
6 years ago
Forum: Solvers
Topic: exclude expression from product if denumerator = 0
Replies: 5
Views: 4892

Re: exclude expression from product if denumerator = 0

Thank you very much for your help! this down here (as you suggested) is exactly what I need : variables B(u,g,r) OBJ SHARE(u,g) ; nonnegative variable B equations constraint1 constraint2(u) defshare(u,g) objective; constraint1.. sum((u,g,r), B(u,g,r)) =L= 3; defshare(u,g).. SHARE(u,g) * sum(r, B(u,g...
by Menna Khaled
6 years ago
Forum: Solvers
Topic: exclude expression from product if denumerator = 0
Replies: 5
Views: 4892

Re: exclude expression from product if denumerator = 0

Thanks a lot for your note, I just don't get what you're proposing, what is share(u,g) ? why should I multiply it by these terms ? if you mean that I should write this : CONSTRAINT2(u) ..prod(g$(SUM(r,B(u,g,r)) ne 0),0.0024+SUM(r,SUM(uu$(ORD(uu) NE ORD(u)),B(uu,g,r)*Mat(uu,g,r))) /(SUM(r,B(u,g,r)*Ma...
by Menna Khaled
6 years ago
Forum: Solvers
Topic: exclude expression from product if denumerator = 0
Replies: 5
Views: 4892

exclude expression from product if denumerator = 0

SETS u /1*10/ g /1*10/ r /1*10/ alias (u, uu) PARAMETERS X(g) /1 7833.9 2 7878.4 3 7923.1 4 7967.9 5 8012.8 6 8057.9 7 8103.1 8 8148.4 9 8193.8 10 8239.4/ TABLE K(u,r) 1 2 3 4 5 6 7 8 9 10 1 110.9400 14.9427 21.7730 107.2948 86.9236 125.0415 77.2769 6.1595 65.2744 69.2062 2 72.1302 29.9665 21.6391 6...