Closed matthewcrews closed 3 years ago
This code:
let d = Decision.createBoolean "d1" let e = 2.0 * (1.0 * d) + 1.0 * d let r = LinearExpression.Reduce e
Produces
val r : ReducedLinearExpression = { DecisionTypes = dict [(DecisionName "d1", Boolean)] Coefficients = dict [(DecisionName "d1", 4.0)] Offset = 0.0 }
But should produce this
val r : ReducedLinearExpression = { DecisionTypes = dict [(DecisionName "d1", Boolean)] Coefficients = dict [(DecisionName "d1", 3.0)] Offset = 0.0 }
This code:
Produces
But should produce this