how to remove a tuple of tupleset with conditions
I habe the code like this:
how to initialize a derived set that has fewer elements than the original set im OPL, CPLEX
tuple Combination_L { int labrooms; int instructors; int studentgroups; int labcourses; }; {Combination_L} L = …; tuple Combination_T { int days; int slots; }; {Combination_T} T = …; tuple Combination_L_T{ int labrooms; int days; int slots; int instructors; int studentgroups; int labcourses; }; {Combination_L_T} V_l; execute { for (var p in L){ for (var q […]
Can we check the optimality gap between the solution found within a specified time limit and the actual optimal solution in CPLEX OPL?
In CPLEX OPL code, I have specified a time limit of 1800 seconds for obtaining a solution. How can I determine the optimality gap between the solution I’m obtaining and the true global optimal solution ? Is there any way to specify both the optimality gap and time limit in the cplex opl code ?
What could be the violated constraints or syntax-related issues in the provided CPLEX OPL code when encountering a no solution as an error?
I am trying to solve a mixed-integer type nonlinear optimization model in cplex opl. I am getting no solution while solving the problem in cplex opl. What might be causing this? Could it be a violated constraint or a syntax-related issue within the code?
Combination of tuples and nest the elements of these 2 tuples together im CPLEX
I have two tuples like this:
Ordered Pairs in CPLEX OPL
I’m trying to model the following in CPLEX:
Image
I habe Problem with function “excute” in Cplex
Could you please tell me, where is wrong
3-dimension Parameter in Cplex
I’ve got a model that I need to calculate the capacity of rooms (i) divided by the number of students in a student group (m). I use this value in my object function. I’m not sure how to code this parameter though. Do I use “execute”?
Also, the parameter H_jkl is used to show the instructor l’s mood during the time period (j k) (H = 1 “happy”, = 2 “okay”, = 3 “sonst”). There are five days, and each day has four time slots. That means there are twenty time periods in a week. So, I think H_jkl is a range of [timeperiod] and [1..d] (set of instructors). But this can’t show the index (j k). I think I need to use this “int timeperiod [1..b, 1..c] = [j: [k: (k + (j-1)*4)] | j in 1..b, k in 1..c]” to connect timeperiod and (j k), but I think it is wrong.
The object function is: minimize c_im * H_jkl * x_ijklmn