inkscape:perspective
sodipodi:type="inkscape:persp3d"
inkscape:vp_x="0 : 526.18109 : 1"
inkscape:vp_y="0 : 1000 : 0"
inkscape:vp_z="744.09448 : 526.18109 : 1"
inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
id="perspective10" />
image/svg+xml
www.optaplanner.org
www.optaplanner.org
en
ConstraintStream: incremental calculation Unlike SQL and Java 8 Streams, this API supports incremental score calculation (delta's) to scale better. from(Shift.class)
Ann
1feb
Uni<Shift>
Beth
2feb
Ann
Beth
3feb
4feb
Carl
5feb
...
Ann
1feb
Uni<Shift>
Ann
3feb
.filter(Shift::isEmployeeAnn)
.penalize("Don't assign Ann", ONE_SOFT)
-1soft -1soft -2soft
+ Score
-2soft Old score
Ann
1feb
Uni<Shift>
Beth
2feb
Beth
Ann
3feb
4feb
Carl
5feb
...
This is a delta.Of 1000 shifts,only 2 change,so 99.8% donot recalculate.
Ann
1feb
Uni<Shift>
Beth
3feb
Ann
4feb
-1soft -1soft -2soft
+ Score -1soft +1soft -1soft