Before answering I post the content of your docx file since this will make it easier to read this thread:
--- snip ---
Hello,
I am trying to make a model which gives me an optimal festival schedule. Right now I am trying to define this model as an IP.
For my first try, I created a variable Xijk , which is one if artist i is scheduled on podium j in timeslot k. I made some constraints to make sure every artist has a unique combination of podium and timeslot. So far everything went well.
As input data I have a matrix Cost(i)(j) in which the number of people is defined who want to see as well artist i as artist j. To calculate which schedule is optimal, I would like to make an objective function which minimizes the number of overlaps and the number of sequenceconflicts. Som y objective should be of this form:
Minimize: Cij*Oij*w1+ Cij*Sij*w2
Oij: 1, if artist i is in the same timeslot as artist j and 0 otherwise
Sij: 1, if artist j is in the next timeslot, but at a different stage as artist i and 0 otherwise
To define Oij, I would make a constraint like this:
∀ i,z ∈Artists, ∀ k ∈Timeslots: jXijk*jXzjk=Oiz
The same way for Sij:
∀ i,z ∈Artists, ∀ k ∈Timeslots: jXijk*lXzlk+1=Siz , with l different from j
Is this possible? Can CPlex solve this kind of problem, because I think the objective function will be of a quadratic form.
--- snap ---
#DecisionOptimization#MathematicalProgramming-General