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

BF: initialise with float zero

parent 13e1088c
No related branches found
No related tags found
1 merge request!4Resolve "Add secondary objective function"
......@@ -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]) 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