How to solve two stage stochastic problem in CPLEX
The mathematical expression of the problem formulation of a two-stage stochastic optimization problem in CPLEX is given below
Can we update the element of set in OPL Cplex
Suppose I have a set at time t = 1, Damage = {1,5,6,9,11,21,23,29}. The element of this set gets updated at different periods depending on the decision variable repair[n][t]. So to update the element of the set I am writing the Code in OPL Cplex that is given below. But I am not getting results with this code. Please guide me so that I can find out the decision variable dependent time varying set
How to update the element of set
I have a set of damaged lines initially.
damagelines = {1,5,8,10,25} at time t = 1 second
at time t = 2 seconds one of the lines i.e. l = 5 is repaired by the repair crew. I have a variable that indicates the repair status of the damaged line i.e. rep[l][t]. if the value of this binary variable is one for the damaged line 5 at time t is 2 that means the line is repaired and we have to update the element of the damaged line set. Now the new set of damaged lines is {1,8,10,25} at time t = 2 seconds. Can you suggest me code in OPL Cplex that helps in updating the element of a set?
How can I fix data element “;” unexpected “?” error and modify data for more than 3 dimension array?
I’m a CPLEX beginer and currently try to practicing on a multi-objective model for personal learning with the code and input data below: