Originally posted by: Marco_T_from_W
Hello together,
i need a little bit of help to create a "constraint within a constraint".
"
forall(k in STUF: k == 5 , t in TAKT)
PR_1: (sum (k in STUF: k == 5, t in TAKT) Q
k,t/ANZTAKT); "
In my case ANZTAKT is 10000, TAKT = 1..ANZTAKT and STUF is 5. For every 10000 ts and all k == 5 (within the ts) the calculation above must be done.
And at the end(!) when t = 10000 the result must be >= 0.50 (for example).
So i need somethink like this:
"
forall(k in STUF: k == 5 , t in TAKT: t == 10000)
[forall(k in STUF: k == 5 , t in TAKT)
PR_1: (sum (k in STUF: k == 5, t in TAKT) Q
k,t]/ANZTAKT) >= 0.5; " <--- this does not work obviously.
The problem is, that just at the end(when t == 10000) the equation should be fulfilled. Inbetween in can be lower at sometimes.
Is their an easy way to do so?
Thanks in advance!!!
Marco
#DecisionOptimization#OPLusingCPLEXOptimizer