Add "solve" variant that maximizes weight
Closed this issue · 1 comments
nibe commented
It'd be nice if there was a solve
variant that maximizes the weight:
(defn maximize-weight [f agents tasks]
"Assigns tasks to agents, maximising the weight calculated by f."
(-> (comp - f)
(minimize-weight agents tasks)
(update :weight -)))
timothypratley commented
Yes; I agree. I will take a look on the weekend; also Pull requests are welcome if you prefer that :)