Originally posted by: AndreCire
Dear Forum,
I hope all is well.
I need to model a renewable resource (a product in a tank) that is consumed and produced by certain activities (representing typical product demand and production, respectively). Consumption activities have a pre-determined amount that they require from the resource and can be formulated perfectly with "-IloStepAtEnd". Production activities, on the other hand, have a variable production amount between 'vmin' and 'vmax' that I formulate also using +IloStepAtEnd:
f += IloStepAtEnd(act_prod_A, vmin, vmax)
f += IloStepAtEnd(act_prod_B, vmin, vmax)
...
f += IloStepAtEnd(act_prod_Z, vmin, vmax)
(for some cumulative function 'f'). My issue is that I have additional constraints over the total amount that is produced during that period (e.g., raw material limitations). For example, I may not be able to produce 'vmax' in all production activities. Since the amount 'v' that is produced for each +IloStepAtEnd in this case is a decision of the problem, would it be possible to actually get that variable/expression and use it in other constraints? I hope I'm not missing something trivial there.
Thanks a lot!
Andre
#CPOptimizer#DecisionOptimization