There's a pain point when calling sum and sumAll for collections that hold Decision. The addition of the Decision type results in a LinearExpression. This does not work with the built in Sum methods which expect addition to be Monoidal.
Since SMap is the preferred container type for this library, I propose adding an override for Sum in the Slice Maps that deals with this scenario. This does not fix this for other collection types but it does for the primary use case.
There's a pain point when calling
sum
andsumAll
for collections that holdDecision
. The addition of theDecision
type results in aLinearExpression
. This does not work with the built inSum
methods which expect addition to be Monoidal.Since
SMap
is the preferred container type for this library, I propose adding an override forSum
in the Slice Maps that deals with this scenario. This does not fix this for other collection types but it does for the primary use case.