Search found 1 match
- 7 years ago
- Forum: Modeling
- Topic: How to make a variable's supscripts equal to another variables subscripts?
- Replies: 0
- Views: 3041
How to make a variable's supscripts equal to another variables subscripts?
I have tried to add a soft constraint penalty to my objective function. My soft constraint is this: sum((i,j,p,t), x(i,j,p,t)-r(i,j,p,t)) =e= 6000 And then the penalty is added in my objective function like this at the end: + sum((i,j,p,t),penalty(p,j,i)*r(i,j,p,t)) The x variable is an amount of pr...