Skip to content

Commit e7f9bb2

Browse files
committed
docs: fix list variable unassigned values documentation
1 parent caa3417 commit e7f9bb2

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/src/modules/ROOT/pages/using-timefold-solver/modeling-planning-problems.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,10 +1179,10 @@ To allow a planning value to be unassigned, set `allowsUnassignedValues` to ``tr
11791179
11801180
[source,java,options="nowrap"]
11811181
----
1182-
@PlanningListVariable(..., allowsUnassignedValues = true)
1183-
public Worker getWorker() {
1184-
return worker;
1185-
}
1182+
@PlanningListVariable(allowsUnassignedValues = true)
1183+
public List<Customer> getCustomers() {
1184+
return customers;
1185+
}
11861186
----
11871187
11881188
[NOTE]
@@ -1207,15 +1207,15 @@ One way to deal with this is to filter the entity selector of the placer in the
12071207
xsi:schemaLocation="https://timefold.ai/xsd/solver https://timefold.ai/xsd/solver/solver.xsd">
12081208
...
12091209
<constructionHeuristic>
1210-
<queuedEntityPlacer>
1211-
<entitySelector id="entitySelector1">
1210+
<queuedValuePlacer>
1211+
<valueSelector id="selector1">
12121212
<filterClass>...</filterClass>
1213-
</entitySelector>
1214-
</queuedEntityPlacer>
1213+
</valueSelector>
1214+
</queuedValuePlacer>
12151215
...
1216-
<changeMoveSelector>
1217-
<entitySelector mimicSelectorRef="entitySelector1" />
1218-
</changeMoveSelector>
1216+
<listChangeMoveSelector>
1217+
<valueSelector mimicSelectorRef="selector1" />
1218+
</listChangeMoveSelector>
12191219
...
12201220
</constructionHeuristic>
12211221
...

0 commit comments

Comments
 (0)