fslaborg / flips

Fsharp LInear Programming System
https://flipslibrary.com/#/
MIT License
252 stars 32 forks source link

Change composition rules for Decision #39

Closed matthewcrews closed 4 years ago

matthewcrews commented 4 years ago

Right now it is clunky to get the result from the Solution type since the values for the Decisions are in a Map<DecisionName,float. While the reasoning for this was to ease the composition for the model, it makes actually extracting the results clunky.

I propose to make modeling slightly more complex but to dramatically ease the extraction of results by not have the create Decision functions return LinearExpression.

matthewcrews commented 4 years ago

Might as well see if we can create a meaningful DecisionBuilder