#************************************************************************y # WeddingPlanner Assignment 2, "Mathematical Programming Modelling" (42112) using JuMP using HiGHS #************************************************************************y #************************************************************************y # PARAMETERS include("WeddingData20.jl") # small dataset println("Runing WeddingPlanner with $(G) guests, $(T) tables with capacity $(TableCap)") #************************************************************************ #************************************************************************ # Model wp =Model(HiGHS.Optimizer) # 1 if guest g is sitting at table T @variable(wp, x[g=1:G,t=1:T], Bin) # 1 if guest g1 and guest g2 are both sitting at table T, symmetric @variable(wp, 0 <= y[g1=1:G,g2=1:G,t=1:T] <= ( g1 < g2 ? 1 : 0) ) # Maximize the total amount of shared interests @objective(wp, Max, sum( SharedInterests[g1,g2]*y[g1,g2,t] for t=1:T, g1=1:G, g2=1:G if g1