All Classes and Interfaces
Class
Description
Abstract superclass for
Acceptor.Implements the concat operation.
A config class is a user-friendly, validating configuration class that maps XML input.
FP streams implementation of
ScoreDirectorFactory.The two-input nodes that cross-match a left tuple against a right tuple through a user predicate:
AbstractJoinNode and AbstractIfExistsNode.It is expected that if two instances share the same properties,
they are
equal to one another.Abstract superclass for
EntityPlacer.Filtering nodes are expensive.
Abstract superclass for every generic
MoveSelector.This and its subclasses exist so that Gizmo only needs to generate code where it is necessary for it to be generated.
This class has two direct children:
AbstractIndexedIfExistsNode and AbstractUnindexedIfExistsNode.A node in two hidden intrusive doubly-linked lists at once:
one keyed on its left tuple (counter.leftTuple) and one on its right tuple.
There is a strong likelihood that any change to this class,
which is not related to indexing,
should also be made to
AbstractUnindexedIfExistsNode.There is a strong likelihood that any change to this class, which is not related to indexing,
should also be made to
AbstractUnindexedJoinNode.This class has two direct children:
AbstractIndexedJoinNode and AbstractUnindexedJoinNode.Abstract superclass for
LocalSearchForager.Abstract superclass for
MoveSelector.Every node must be a child of one of the permitted extensions of this class.
Represents the various lifecycle operations that can be performed
on tuples within a node in Bavet.
Abstract superclass for
ScoreDefinition.Abstract superclass for
ScoreDirector.An abstract builder for creating instances of
InnerScoreDirector.Abstract superclass for
ScoreDirectorFactory.Abstract superclass for
Selector.Common code between
DefaultSolver and child solvers.There is a strong likelihood that any change made to this class
should also be made to
AbstractIndexedIfExistsNode.There is a strong likelihood that any change made to this class
should also be made to
AbstractIndexedJoinNode.Some
Demand implementation classes are defined by their VariableDescriptor and nothing else.A
LocalSearchForager which forages accepted moves and ignores unaccepted moves.An Acceptor accepts or rejects a selected
Move.Additional information for the GIZMO accessor generation.
Used for incremental java
Score calculation with support for ScoreAnalysis
Any implementation is naturally stateful.Assigns a non-null value to each entity whose planning variable is currently unassigned (null).
Exists to expose read-only view of
TopologicalOrderGraph.Stores a graph node id and dynamically calculates its topological order.
Concurrency notes:
Condition predicate on (
BasicPlumbingTermination.problemChangeQueue is not empty or BasicPlumbingTermination.terminatedEarly is true).Flattened, event-free dispatch shape for shadow variable updates that need to be notified
eagerly of basic variable changes, without allocating a change event for every notification.
Single source of truth for the inverse relation of a basic
PlanningVariable.The type is public to make it easier for Bavet-specific minimal bug reproducers to be created.
A marker interface for Bavet's precompute streams.
This
Score is based on n levels of BigDecimal constraints.This
Score is based on n levels of long constraints.Delivered when the
best solution changes during solving.Remembers the
best solution that a Solver encounters.Used to build a
Constraint out of a BiConstraintStream, applying optional configuration.As described by
UniConstraintCollector, only for BiConstraintStream.As defined by
UniConstraintCollectorAccumulator,
only for BiConstraintCollector.As defined by
UniConstraintCollectorValueHandle,
only for BiConstraintCollector.A
ConstraintStream that matches two facts.An opaque handle to a dataset created via
BiEnumeratingStream.asCachedDataset()
or via
UniDataset.join(ai.timefold.solver.core.preview.api.neighborhood.stream.enumerating.UniEnumeratingStream).The runtime instance of a
BiDataset, resolved against a specific solving session.A cursor over the rows of a
BiDatasetInstance.Created with
Joiners.As defined by
UniNeighborhoodsCollector, only for BiEnumeratingStream.As defined by
UniNeighborhoodsCollectorAccumulator, only for BiNeighborhoodsCollector.As defined by
UniNeighborhoodsCollectorValueHandle, only for BiNeighborhoodsCollector.Created with
NeighborhoodsJoiners.A mapping function that can be applied to
BiEnumeratingStream to transform data,
optionally using SolutionView to query for solution state.A filter that can be applied to a
BiEnumeratingStream to filter out pairs of data,
optionally using SolutionView to query for solution state.A two-value variant of
PickingStream.Represents a gap between two
sequences.This
Iterator does not shuffle and is never ending.Specifies that a field may be updated by the target method when any of its variables change, genuine or shadow.
For each entity with a non-null value,
creates a move to change it to a different non-null value.
Exists so that particular user-provided classes,
which are instantiated by Timefold from
SolverConfig,
only ever have one instance.Creates a
Comparable to decide the order of a collection of selections
(a selection is a PlanningEntity, a planningValue, a Move or a Selector).Sorts a selection
List based on a ComparatorFactory.Sorts a selection
List based on a Comparator.Combines several acceptors into one.
A CompositeMove is composed out of multiple other moves.
A thread-safe memoization that caches a calculation.
Represents a collection of ranges that are connected, meaning
the union of all the ranges results in the range
[
ConnectedRange.getStart(), ConnectedRange.getEnd()) without gaps.Contains info regarding
ConnectedRanges and RangeGaps for a collection of ranges.A class that holds common lambdas that are guaranteed to be the same across method calls.
This represents a single constraint in the
ConstraintStream API
that impacts the Score.Note:
ScoreAnalysis is exclusive to Timefold Solver Enterprise Edition.Creates an
UniConstraintCollector, BiConstraintCollector, ... instance
for use in UniConstraintStream.groupBy(Function, UniConstraintCollector), ...The factory to create every
ConstraintStream (for example with ConstraintFactory.forEach(Class))
which ends in a Constraint returned by ConstraintProvider.defineConstraints(ConstraintFactory).Marker interface for constraint justifications.
Retrievable from
ConstraintMatchTotal.getConstraintMatchSet().Determines whether constraint match is enabled and whether constraint match justification is enabled.
A registration for a constraint match, which can be cancelled.
If possible, prefer using
SolutionManager.analyze(Object) instead.Identifies a
Constraint and optionally carries metadata about it.Provides information about the known constraints.
A unique identifier for a constraint node profile.
Used by Constraint Streams'
Score calculation.Represents a unique identifier of a constraint.
Represents Constraint Streams' network of nodes, specific to a particular session.
Implementations must be thread-safe, in order to enable parallel test execution.
Used to override constraint weights defined in Constraint Streams,
e.g., in
UniConstraintStream.penalize(Score).A
ConstructionHeuristicPhase is a Phase which uses a construction heuristic algorithm,
such as First Fit, First Fit Decreasing, Cheapest Insertion, ...An adapter for
ConstructionHeuristicPhaseLifecycleListener.Used for converting selector size to some other value.
Marks a problem fact class as being required to be deep planning cloned.
Default implementation of
ConstraintJustification,
exposed by score analysis
unless the user defined a custom justification mapping.Default implementation of
ConstructionHeuristicPhase.Default implementation for
Solver.Builds
DefaultSolver instances out of a SolverConfig,
and owns the state which is expensive to build and therefore shared by every solver it builds:
the SolutionDescriptor and a single ScoreDirectorFactory.Similar to
Executors's DefaultThreadFactory, but allows settings a namePrefix.Implemented by nodes that must run a preparation step at the start of their own layer's turn,
before
Propagator.propagateRetracts()/Propagator.propagateUpdates()/
Propagator.propagateInserts() run for any node in that layer.A
RandomGenerator that delegates to another RandomGenerator.SplittableGenerator
instance.A subsystem submits a demand for a
Supply.Determines how members (fields and methods) of the domain (for example the
planner variable)
are accessed.A class representing an int array that is dynamically allocated based on the first set index.
A class representing a non-negative int-to-int map that is compacted so the backing int
arrays are as small as possible.
Used for easy java
Score calculation.Easy java implementation of
ScoreDirector, which recalculates the Score
of the working solution every time.Easy implementation of
ScoreDirectorFactory.AbstractList implementation which allows for a cheap removal of an element,
while still providing fast iteration and random access.Linked list that allows to add and remove an element in O(1) time.
Selects destinations for list variable change moves.
A supertype for
PositionInList and UnassignedElement.General superclass for
QueuedEntityPlacerConfig and PooledEntityPlacerConfig.Selects instances of 1
PlanningEntity annotated class.The manner of sorting
PlanningEntity instances.A pair of an entity and a variable on it.
The environment mode also allows you to detect common bugs in your implementation.
A
SolverConfig declares one environment mode, the global one,
and each of its phases may override it with a stricter one.Identifies the producer of a
BestSolutionChangedEvent.Delivered in a consumer thread at the end of the solving process and contains the final
best
solution found.Delivered in a consumer thread at the beginning of the actual optimization process.
This is the common
ValueSelector implementation.This is the common
EntitySelector implementation.Represents the meta-model of a genuine planning entity, an entity that has at least one genuine planning variable,
and may also have shadow variables.
A
VariableMetaModel that represents a basic planning variable.Loads a class if we have the Gizmo-generated bytecode for it,
otherwise uses the current
Thread's context ClassLoader.Generates the bytecode for the MemberAccessor of a particular Member
Describe and provide simplified/unified access for
Member.Each Group...Node with at least one collector have a constructor with the following signature:
Group...Node(<keyMappings>, IntSupplier storeIndexReserver, <collectors>,
TupleLifecycle<Tuple_> nextNodesTupleLifecycle, int outputStoreSize,
Environment environmentMode)This
Score is based on 3 levels of BigDecimal constraints: hard, medium and soft.This
Score is based on 3 levels of long constraints: hard, medium and soft.This
Score is based on 2 levels of BigDecimal constraints: hard and soft.This
Score is based on 2 levels of long constraints: hard and soft.Bendable score is a
Score whose IBendableScore.hardLevelsSize() and IBendableScore.softLevelsSize()
are only known at runtime.An exception that is thrown when
SolutionManager.update(Object),
SolutionManager.updateShadowVariables(Object) or
SolutionManager.recommendAssignment(Object, Object, Function) is given a
structurally flawed solution.Used for incremental java
Score calculation.Specifies that a bean property (or a field) is an index of this planning value in another entity's
PlanningListVariable.An optional interface a class can implement to customize how it appears
when indicted in a
ScoreAnalysis.Note:
ScoreAnalysis is exclusive to Timefold Solver Enterprise Edition.Bounds the possible
Scores for a PlanningSolution as more and more variables are initialized
(while the already initialized variables don't change).Bounds 1 score level of the possible
Scores for a PlanningSolution as more and more variables are initialized
(while the already initialized variables don't change).Carries information on if the
PlanningSolution of this score was fully initialized when it was calculated.Specifies that a bean property (or a field) is the inverse of a
PlanningVariable or a PlanningListVariable
which implies it's a shadow variable.This is the common
ValueSelector implementation.Creates an
BiJoiner, TriJoiner, ... instance
for use in UniConstraintStream.join(Class, BiJoiner), ...This set does not support null keys.
Assigns each unassigned value to a position in some entity's list variable.
For each assigned value that is not pinned, creates a move to reassign it to a different position in a list variable.
Locates, for a declarative shadow variable sourced from the elements of a planning
list variable (such as
"values[].endTime"),
the entity declaring the source variable for a given element.An extension on the
Iterable interface that supports ListIterable.listIterator() and ListIterable.listIterator(int).Draws two assigned values on different entities and creates a move to swap their tails -
the portion of each entity's
list variable from the drawn position to the end -
optionally in reverse element order.For each value currently assigned to any entity's list variable,
creates a move to unassign it (remove it from the list).
Flattened, event-free dispatch shape for shadow variable updates that need to be notified
eagerly of list variable changes, without allocating a change event for every notification.
Single source of truth for all information about elements inside
list variables.Calculates the unfairness measure for a particular input.
Collects the moves and picks the next step from those for the
LocalSearchDecider.An adapter for
LocalSearchPhaseLifecycleListener.Allows to transfer an entity or fact instance (often from another
Thread)
to another working solution.This class is thread-safe.
Draws
Samples, governed by a Sampler,
out of the values currently unassigned to any entity's list variable,
and creates a move to insert every member consecutively, in sample iteration order,
at one destination position legal for every member.Draws
Samples, governed by a Sampler,
out of the values currently assigned to any entity's list variable,
and creates a move to gather every member consecutively,
in sample iteration order,
at one destination position legal for every member.Draws
Samples, governed by a Sampler -
see Samplers for ready-made ones,
since an unbounded sampler makes this provider's move cost linear in the data set size -
out of the values currently assigned to any entity's list variable,
and creates a move to unassign every member at once.Draws
Samples, governed by a Sampler -
see Samplers for ready-made ones,
since an unbounded sampler makes this provider's move cost linear in the data set size -
out of the entities whose given basic planning variable is currently assigned a non-null value, of any value,
and creates a move to unassign every member at once
(set the basic planning variable to null).Note:
ScoreAnalysis is exclusive to Timefold Solver Enterprise Edition.Includes code taken from Apache's commons-math library, v3.6.1 (Apache 2.0-licensed)
These methods are clearly marked in comments, their modifications listed.
Supply whose value is pre-computed and cached the first time
MemoizingSupply.read() is called.Mixes a legacy
MoveSelector with a NeighborhoodsMoveSelector,
drawing from each side in proportion to how many movers it holds:
the number of leaf move selectors on one side, the number of neighborhoods on the other.Use for unit-testing
ProblemChanges.A Move represents a change of 1 or more
PlanningVariables of 1 or more PlanningEntitys in the working
PlanningSolution.While the Neighborhoods API and Move Selectors API need to coexist,
there are places where moves need to be converted between the old and new types.
Allows for reading data produced by a temporary move, before it is undone.
Bridges a
MoveIteratorFactory to a MoveSelector.Builds a custom
Iterator of Moves from datasets cached via
asCachedDataset(), for use with MoveStreamFactory.buildMoveStream(MoveIteratorProvider).The runtime handle a
MoveIteratorProvider resolves its cached datasets and solution state against.Bridges a
MoveListFactory to a MoveSelector.Implement this to provide a definition for one move type.
This is a shared abstraction for all three types of move iterators currently used in the solver:
MoveSelectorBasedMoveRepository for local search and exhaustive search.
PlacerBasedMoveRepository for construction heuristics.
NeighborhoodsBasedMoveRepository for the Neighborhoods API.
As the Neighborhoods API becomes gradually more capable,
these extra implementations will be removed
until only NeighborhoodsBasedMoveRepository remains in use.Factory class for creating built-in
Move instances that mutate planning variables.Generates
Moves.General superclass for
ChangeMoveSelectorConfig, etc.Provides methods for executing moves on a bound planning solution instance.
Entry point for executing
Moves on planning solutions.A mutable key-value tuple.
Contains all reading and mutating methods available to a
Move in order to change the state of a
planning solution.For move selectors that support Nearby Selection autoconfiguration.
Implementations are expected to be stateless.
Membership-based assertions over the moves a
MoveProvider can produce for a bound solution instance.A
Consumer that notifies a NeighborhoodsBasedMoveRepository about changes to entities and variables.Represents Neighborhoods' network of nodes, specific to a particular session.
Factory for
UniNeighborhoodsCollector and BiNeighborhoodsCollector instances.Creates an
BiNeighborhoodsJoiner, ... instance
for use in UniEnumeratingStream.join(Class, BiNeighborhoodsJoiner[]), ...Provides methods for enumerating moves for a given
MoveProvider
using a bound planning solution instance,
and membership-based assertions over them.Entry point for evaluating
MoveProviders on a given solution.Delivered in a consumer thread multiple times during the solving process, containing the
best
solution found so far.Specifies that a bean property (or a field) references the next element in the same
PlanningListVariable.An immutable key-value tuple.
A
PartitionedSearchPhase is a Phase which uses a Partition Search algorithm.Represents a function that accepts five arguments and produces a result.
Created with
Joiners.Represents a predicate (boolean-valued function) of five arguments.
A phase of a
Solver.The context of a command that is executed during a custom phase.
EventProducerId for when a BestSolutionChangedEvent is
caused by a phase.An adapter for
PhaseLifecycleListener.Internal API.
Determines when a
Phase should stop.The type of phase (for example, a Construction Heuristic).
Unlike
EnumeratingStream,
this stream is not cached in-memory;
instead, it is lazily evaluated.For each pillar of entities sharing a non-null value of the given variable, creates a move to change every member's
value to a different value that is legal for every member.
Decides which candidates join a
Sample drawn under a key,
such as a slice of a BiDatasetInstance.A pillar is a
List of entities that have the same planning value for each (or a subset)
of their planning values.Draws two pillars, each a set of entities sharing the same combination of values across every variable given to the
constructor, and swaps that combination between the two pillars,
provided at least one variable differs and every differing variable is legal on both sides;
if any differing variable is out of range, the pair is skipped entirely.
Draws pillars of entities sharing a non-null value ("slice value") of the given variable
and creates a move to unassign every member at once
(set the basic planning variable to null).
Specifies that the class is a planning entity.
Specifies that a property (or a field) on a
PlanningSolution class is a Collection of planning entities.A diff between two instances of a
PlanningEntity,
where at least one variable of that entity (genuine or shadow) changed.Represents the meta-model of an entity.
Specifies that a property (or a field) on a
PlanningSolution class is a planning entity.Specifies that a bean property (or a field) is the id to match
when
looking up
an externalObject (often from another Thread or JVM).Specifies that a bean property (or a field) can be changed and should be optimized by the optimization algorithms.
A
VariableMetaModel that represents a list planning variable.Specifies that a boolean property (or field) of a
PlanningEntity determines if the planning entity is pinned.Specifies that an
int property (or field) of a PlanningEntity determines
how far a PlanningListVariable is pinned.Specifies that a property (or a field) on a
PlanningSolution class holds the Score of that solution.Specifies that the class is a planning solution.
Workaround for annotation limitation in
PlanningSolution.solutionCloner().A diff between two instances of a
PlanningSolution.Represents the meta-model of a
PlanningSolution.Specifies that a bean property (or a field) can be changed and should be optimized by the optimization algorithms.
A diff between two values of a single planning variable of a single
PlanningEntity,
Obtain from PlanningEntityDiff.A
VariableMetaModel that represents a basic planning variable.Uniquely identifies the position of a value in a list variable.
Describes a phase that can be used to initialize a solution.
The status with which the phase terminated.
Similar to a
ConstraintFactory, except its methods (and the
ConstraintStreams they return) do not apply any automatic
filters (like those mentioned in ConstraintFactory.forEach(Class)).Lists features available in Timefold Solver on a preview basis.
Specifies that a bean property (or a field) references the previous element in the same
PlanningListVariable.A ProblemChange represents a change in one or more
planning entities or problem facts
of a PlanningSolution.Allows external changes to the
working solution.Specifies that a property (or a field) on a
PlanningSolution class is a Collection of problem facts.Specifies that a property (or a field) on a
PlanningSolution class is a problem fact.The statistics of a given problem submitted to a
Solver.A propagation queue is an ordered collection of items that need to be sent to the next node.
Propagator is an interface that exposes the
PropagationQueue to BavetConstraintSession.Used to build a
Constraint out of a QuadConstraintStream, applying optional configuration.As described by
UniConstraintCollector, only for QuadConstraintStream.As defined by
UniConstraintCollectorAccumulator,
only for QuadConstraintCollector.As defined by
UniConstraintCollectorValueHandle,
only for QuadConstraintCollector.A
ConstraintStream that matches four facts.Represents a function that accepts four arguments and returns no result.
Represents a function that accepts four arguments and produces a result.
Created with
Joiners.Represents a predicate (boolean-valued function) of four arguments.
An immutable tuple of four values.
Provide access to a
RandomGenerator.A contiguous span of positions in a list variable,
drawn together to be moved as one.
A
RangeGap is a gap between two consecutive ConnectedRanges.This class records the relationship between each planning value and all entities that include the related value
within its value range.
Represents the result of the Assignment Recommendation API,
see
SolutionManager.recommendAssignment(Object, Object, Function, ScoreAnalysisFetchPolicy).The implementation records the tuples each object affects inside
an internal
AbstractBavetNodeNetwork and replays them on update.A
MemberAccessor based on a getter and optionally a setter.A
MemberAccessor based on a field.A
MemberAccessor based on a single read Method.Determines the behavior of joins and conditional propagation
based on whether they are coming off of a constraint stream started by
either
ConstraintFactory.forEach(Class),
or PrecomputeFactory.forEachUnfiltered(Class)
family of methods.An unordered set of values drawn together by a
Sampler, to be moved as one.Decides which candidates join a
Sample.An insertion-ordered
SequencedSet which scales its representation with its size,
so that a small set costs no hash node at all.A Score is result of the score function (AKA fitness function) on a single possible solution.
Represents the breakdown of a
Score into individual ConstraintAnalysis instances,
one for each constraint.Determines the depth of
score analysis.The ScoreDirector holds the
working solution
and calculates the Score for it.Builds
AbstractScoreDirector instances, which in turn calculate the Score of a solution.Turns a
ScoreDirectorFactoryConfig into the ScoreDirectorFactory it describes.There is no INHERIT by design because 2 sequential caches provides no benefit, only memory overhead.
Decides on accepting or discarding a selection,
which is either a
PlanningEntity, a planning value, a Move or a Selector).Defines in which order the elements or a selector are selected.
Create a probabilityWeight for a selection
(which is a
PlanningEntity, a planningValue, a Move or a Selector).Decides the order of a
List of selection
(which is a PlanningEntity, a planningValue, a Move or a Selector).General interface for
MoveSelector, EntitySelector and ValueSelector
which generates Moves or parts of them.A CompositeMove is composed out of multiple other moves.
Moves an element of a
list variable.Swaps two elements of a
list variable.Makes no changes.
This
Move is not cacheable.This
Move is not cacheable.A 2-opt move for list variables, which takes two edges and swap their endpoints.
Represents a series of consecutive values.
Contains info regarding the consecutive sequences and breaks in a collection of points.
Used throughout the solver to provide access to some internals of the score director
required for initialization of Bavet nodes and other components.
Represents the meta-model of a shadow entity, an entity which only has shadow variables.
Specifies the paths to variables that a method referenced by
ShadowVariable.supplierName()
uses to compute the value of a ShadowVariable.Specifies that a bean property (or a field) is a custom shadow variable of 1 or more source variables.
A
VariableMetaModel that represents a shadow planning variable.Deprecated, for removal: This API element is subject to removal in a future version.
Utility class for updating shadow variables at entity level.
Identity map whose
ShrinkingIdentityHashMap.clear() replaces the table when the map stays far below its old size,
because IdentityHashMap.clear() costs O(capacity), not O(size).This
Score is based on 1 level of BigDecimal constraints.This
Score is based on 1 level of long constraints.Clones a
PlanningSolution during planning.Reads or writes a
PlanningSolution from or to a File.A stateless service to help calculate
Score, ConstraintMatchTotal, etc.Splits one
solution into multiple partitions.To fully de-normalize a planning solution freshly loaded from persistent storage,
two operations need to happen:
Shadow variable updates need to run,
reading the state of all entities and computing values for their shadow variables.
Score needs to be calculated and stored on the planning solution.
Allows read-only access to the state of the solution that is being operated on by the
Move.EventProducerId for when a BestSolutionChangedEvent is not
caused by a phase.A Solver solves a planning problem and returns the best solution found.
To read it from XML, use
SolverConfig.createFromXmlResource(String).Includes settings to override default
Solver configuration.Owns the
InnerScoreDirector the solver is currently working with,
and swaps it whenever a Phase requires an EnvironmentMode other than the one in use.Internal API.
Creates
Solver instances.Represents a
problem that has been submitted to solve on the SolverManager.Provides a fluent contract that allows customization and submission of planning problems to solve.
Delivered in a consumer thread when the solver starts its solving process.
An adapter for
SolverLifecycleListener.Identifies which move thread, which phase, step and move/move tree the solver is currently executing.
A SolverManager solves multiple planning problems of the same domain,
asynchronously without blocking the calling thread.
The status of
problem submitted to the SolverManager.Some Micrometer registries like Prometheus require each meter
to be registered with the same tag key set.
Determines when a
Solver should stop.The implementation moves tuples directly into an either retract, update or insert queue,
without any option of moving between the queues.
Determines what increment the counter of Step Counting Hill Climbing.
Represents a breakdown of the structural flaws of a solution.
For each contiguous span ("sub-list") of an assigned run of a list variable,
creates a move to relocate it to a different position,
possibly on a different entity,
possibly in reverse element order.
Draws a contiguous span ("sub-list") of a list variable, seeded by an assigned value.
For two contiguous spans ("sub-lists") of assigned runs of a list variable,
each governed by its own size bounds,
creates a move to swap them,
possibly on different entities,
possibly in reverse element order.
Draws contiguous spans ("sub-lists") of assigned runs of a list variable
and creates a move to unassign every member of the drawn span at once.
For each subpillar of entities sharing a non-null value of the given variable,
governed by a
PillarSampler -
Samplers.pillar(Samplers.between(2, n)) is the recommended choice,
since an unbounded Samplers.pillar(Samplers.all()) makes this provider's move cost linear in the pillar's size -
creates a move to change every member's value to a different value that is legal for every member.Draws two subpillars, each governed by its own
PillarSampler -
see Samplers.pillar to lift a size-only policy,
since an unbounded sampler makes this provider's move cost linear in the pillars' combined size -
out of entities sharing the same combination of values across every variable given to the constructor,
and swaps that combination between the two subpillars,
provided at least one variable differs and every differing variable is legal on both sides;
if any differing variable is out of range, the pair is skipped entirely.Draws subpillars, governed by a
PillarSampler -
see Samplers.pillar to lift a size-only policy,
since an unbounded sampler makes this provider's move cost linear in the pillar's size -
of entities sharing a non-null value ("slice value") of the given variable
and creates a move to unassign every member at once (set the basic planning variable to null).Supplies something for 1 or multiple subsystems.
For every pair of distinct entities of the entity class,
creates a move that swaps the values of every variable given to the constructor,
provided at least one variable differs and every differing variable is legal on both entities;
if any differing variable is out of range, the pair is skipped entirely.
Determines when a
Phase should stop.Represents a function that accepts four arguments and produces an int-valued result.
Represents a function that accepts three arguments and produces an int-valued result.
Represents a function that accepts four arguments and produces a long-valued result.
Represents a function that accepts three arguments and produces a long-valued result.
Used to build a
Constraint out of a TriConstraintStream, applying optional configuration.As described by
UniConstraintCollector, only for TriConstraintStream.As defined by
UniConstraintCollectorAccumulator,
only for TriConstraintCollector.As defined by
UniConstraintCollectorValueHandle,
only for TriConstraintCollector.A
ConstraintStream that matches three facts.Represents a function that accepts three arguments and returns no result.
Represents a function that accepts three arguments and produces a result.
Created with
Joiners.An immutable tuple of three values.
Represents a predicate (boolean-valued function) of three arguments.
For each entity's
list variable,
draws two assigned positions.Identifies that a given value was not found in any
PlanningEntity's list variables.For each entity whose basic planning variable is currently assigned (non-null),
creates a move to unassign it (set the variable to null).
Used to build a
Constraint out of a UniConstraintStream, applying optional configuration.Usually created with
ConstraintCollectors.Used by
UniConstraintCollector.accumulator() for incremental collectors.Represents a handle for a single value in a single
UniConstraintCollectorAccumulator group.A
ConstraintStream that matches one fact.An opaque handle to a dataset created via
UniEnumeratingStream.asCachedDataset().The runtime instance of a
UniDataset, resolved against a specific solving session.Draws a fresh, independent move for every call to
UniformRandomUnionMoveIterator.next(),
uniform over the unexhausted iterators in UniformRandomUnionMoveIterator.moveIteratorList itself,
not weighted by how many moves each iterator can still produce.A functional interface for constructing a
Move from a single picked element.Collects the facts from a
UniEnumeratingStream group into a result.Accumulates values into a group container for a
UniNeighborhoodsCollector.Represents a handle for a single value in a single
UniNeighborhoodsCollectorAccumulator group.A mapping function that can be applied to
UniEnumeratingStream to transform data,
optionally using SolutionView to query for solution state.A filter that can be applied to a
UniEnumeratingStream to filter out pairs of data,
optionally using SolutionView to query for solution state.A single-value variant of
PickingStream.Instances are provided by
UniImpactHandler.IMPORTANT: The constructor of any subclass of this abstract class, should never call any of its child
Selector's Iterator.hasNext() or Iterator.next() methods,
because that can cause descendant Selectors to be selected too early
(which breaks MimicReplayingEntitySelector).A
ValueRange that is ending.Factory for
ValueRange.Caches value ranges for the current working solution,
allowing to quickly access these cached value ranges when needed.
Provides the planning values that can be used for a
PlanningVariable.Selects values from the
ValueRangeProvider for a PlanningVariable annotated property.The manner of sorting values for a
PlanningVariable.Each before/after event needs to look up a variable descriptor.
A set of entity-variable pairs that form a cycle.
Describes a variable in the domain model.
What changes of one variable do in this graph, resolved once by
VariableReferenceGraph.resolveHookFor(VariableMetaModel).This class is not thread-safe.
Score.structuralScore()removed the need for this annotation.