Skip to content
Snippets Groups Projects
Unverified Commit 38908b20 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Add previous cost functions to current one

parent 74b3c467
No related branches found
No related tags found
1 merge request!8Make optimisation more robust
......@@ -20,7 +20,7 @@ function iterate_cost()
if iszero(length(unique_weights))
return [0.]
else
return [sum([f for (w, f) in GLOBAL_MODEL[][2] if w == weight]; init=0.) for weight in unique_weights]
return [sum([f for (w, f) in GLOBAL_MODEL[][2] if w <= weight]; init=0.) for weight in unique_weights]
end
end
......
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