Class SimpleGeneticOptimizationSolverCombinatorics
java.lang.Object
org.tweetyproject.math.opt.solver.Solver
org.tweetyproject.math.opt.solver.CombinatoricsSolver
org.tweetyproject.math.opt.solver.SimpleGeneticOptimizationSolverCombinatorics
SimpleGeneticOptimizationSolverCombinatorics class
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassCompares individuals by the fitness (value of the target function) - 
Constructor Summary
ConstructorsConstructorDescriptionSimpleGeneticOptimizationSolverCombinatorics(int populationSize, int populationIncreaseMutation, int populationIncreaseCrossOver, int minIterations, double precision) Creates a new simple genetic optimization solver. - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleansolve(CombinatoricsProblem prob) Returns the solution according the problem; problem has to be minimizing (which only contains variables with defined upper and lower bounds).Methods inherited from class org.tweetyproject.math.opt.solver.CombinatoricsSolver
solveMethods inherited from class org.tweetyproject.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver 
- 
Constructor Details
- 
SimpleGeneticOptimizationSolverCombinatorics
public SimpleGeneticOptimizationSolverCombinatorics(int populationSize, int populationIncreaseMutation, int populationIncreaseCrossOver, int minIterations, double precision) Creates a new simple genetic optimization solver.- Parameters:
 populationSize- The size of the populationpopulationIncreaseMutation- How many new individuals are created by mutation (per individual)populationIncreaseCrossOver- How many new individuals are created by cross-over (per pair of individuals)minIterations- The minimal number of iterationsprecision- If an iteration improves less than this value the algorithm ends
 
 - 
 - 
Method Details
- 
solve
Returns the solution according the problem; problem has to be minimizing (which only contains variables with defined upper and lower bounds).- Parameters:
 prob- the problem- Returns:
 - the optimal solution found in the search
 
 - 
isInstalled
- Returns:
 - if solver is installed
 - Throws:
 UnsupportedOperationException- UnsupportedOperationException
 
 -