Skip to content
Snippets Groups Projects
Commit ef7eb275 authored by Sander Boot's avatar Sander Boot
Browse files

fixed typo

parent 981aeabe
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ def Solve(images, blackouts):
""""DECISION VARIABLES"""
# objective function to minimize
makepsan = model.addVar(lb=0, vtype=GRB.CONTINUOUS)
makespan = model.addVar(lb=0, vtype=GRB.CONTINUOUS)
# Processing Volume = sum of length of images transmitted in whitebox t
PV_t = model.addVars(whitebox_count, lb=0, vtype=GRB.CONTINUOUS)
......@@ -44,10 +44,10 @@ def Solve(images, blackouts):
"""CONSTRAINTS"""
# minimize makespan
model.setObjective(makepsan, GRB.MINIMIZE)
model.setObjective(makespan, GRB.MINIMIZE)
# end time is when the last filled whitebox finished processing all its images
model.addConstrs((makepsan >= (PV_t[t] + wb_t[t][0]) * (1-Xfree_t[t])
model.addConstrs((makespan >= (PV_t[t] + wb_t[t][0]) * (1-Xfree_t[t])
for t in range(whitebox_count)))
# sets Xfree_t to be (at least) 1 if there is no image in the whitebox
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment