Hi,
both.
For dynamic programming, if you can write the subproblem in OPL, you could do the loop in scripting
For stochastic programming, see the example in CPLEX_Studio127\opl\examples\opl\models\YieldStochastic
Yield management
This model implements the example of Yield Management from Model Building in Mathematical Programming, by H. Paul Williams.
regards
#DecisionOptimization#OPLusingCPLEXOptimizer