File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -572,7 +572,7 @@ def define_constraints(constraint_factory: ConstraintFactory):
572
572
lambda entity : entity .value
573
573
))
574
574
.reward (SimpleScore .ONE ,
575
- lambda balance : balance .unfairness ().multiply ( BigDecimal . valueOf ( 1000 ) ).intValue ())
575
+ lambda balance : balance .unfairness ().movePointRight ( 3 ).intValue ())
576
576
.as_constraint ('Balanced value' )
577
577
]
578
578
@@ -594,8 +594,8 @@ def define_constraints(constraint_factory: ConstraintFactory):
594
594
595
595
entity_c .value = value_2
596
596
597
- assert score_manager .explain (problem ).score == SimpleScore .of (2 ) // FIXME
597
+ assert score_manager .explain (problem ).score == SimpleScore .of (707 )
598
598
599
599
entity_b .value = value_2
600
600
601
- assert score_manager .explain (problem ).score == SimpleScore .of (4 ) // FIXME
601
+ assert score_manager .explain (problem ).score == SimpleScore .of (707 )
You can’t perform that action at this time.
0 commit comments