Package | Description |
---|---|
org.jamesframework.core.problems |
High-level problem specification.
|
org.jamesframework.core.problems.constraints |
Constraint interfaces.
|
Modifier and Type | Method and Description |
---|---|
List<Constraint<? super SolutionType,? super DataType>> |
GenericProblem.getMandatoryConstraints()
Get mandatory constraints (unmodifiable view).
|
Collection<Constraint<? super SolutionType,? super DataType>> |
GenericProblem.getViolatedConstraints(SolutionType solution)
Returns a collection of all violated constraints (both mandatory and penalizing).
|
Modifier and Type | Method and Description |
---|---|
void |
GenericProblem.addMandatoryConstraint(Constraint<? super SolutionType,? super DataType> constraint)
Add a mandatory constraint to the problem.
|
boolean |
GenericProblem.removeMandatoryConstraint(Constraint<? super SolutionType,? super DataType> constraint)
Remove a mandatory constraint.
|
Modifier and Type | Interface and Description |
---|---|
interface |
PenalizingConstraint<SolutionType extends Solution,DataType>
Interface of a penalizing constraint that assigns a penalty to a solution's evaluation if it does not
satisfy the constraint.
|
Copyright © 2016. All rights reserved.