DataType
- data type of the permutation problem, required to implement the IntegerIdentifiedData
interfacepublic class PermutationProblem<DataType extends org.jamesframework.core.problems.datatypes.IntegerIdentifiedData> extends org.jamesframework.core.problems.GenericProblem<PermutationSolution,DataType>
PermutationSolution
, which models a solution as an ordered sequence
of these IDs. The data type can be any class or interface that implements the IntegerIdentifiedData
interface, which imposes the assignment of IDs to items in the data set. A default random solution generator
is used, which creates random permutations by shuffling the list of IDs as retrieved from the data.Constructor and Description |
---|
PermutationProblem(DataType data,
org.jamesframework.core.problems.objectives.Objective<? super PermutationSolution,? super DataType> objective)
Create a permutation problem with given objective and data.
|
addMandatoryConstraint, addPenalizingConstraint, createRandomSolution, evaluate, evaluate, getData, getMandatoryConstraints, getObjective, getPenalizingConstraints, getRandomSolutionGenerator, getViolatedConstraints, isMinimizing, removeMandatoryConstraint, removePenalizingConstraint, setData, setObjective, setRandomSolutionGenerator, validate, validate
public PermutationProblem(DataType data, org.jamesframework.core.problems.objectives.Objective<? super PermutationSolution,? super DataType> objective)
null
.data
- underlying dataobjective
- objective of the problemNullPointerException
- if objective
or data
are null
Copyright © 2016. All rights reserved.