Verified Commit e0b5c891 authored by Löscher Mario's avatar Löscher Mario
Browse files

update

parent 0de226e3
......@@ -175,7 +175,7 @@ def best_performance_under_limit(
index+=1
max_price = 6
max_price = 5
#write solution
current_price = max_price
current_solution[solutions_machine[max_price_position]] = math.ceil(solutions_hours[max_price_position]/3600 * prices[solutions_machine[max_price_position]])
......@@ -189,8 +189,8 @@ def best_performance_under_limit(
local_price = math.ceil(solution / 3600) * prices[solutions_machine[index]]
factor = math.floor(max_price / local_price)
new_runtime = solution / factor
if new_runtime > getMinRuntime(batch_durations, index):
new_runtime = getMinRuntime(batch_durations, index)
#if new_runtime > getMinRuntime(batch_durations, index):
# new_runtime = getMinRuntime(batch_durations, index)
new_price = math.ceil(solution / 3600 /factor ) * prices[solutions_machine[index]] * factor
if (new_runtime < solutions_hours[max_price_position] * 0.9): # 0.9 to simulate the traffic time needed to transfer
current_price = new_price
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment