|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.problem.OptimisationProblemAdapter net.sourceforge.cilib.problem.coevolution.PerformanceEvaluationOptimizationProblem net.sourceforge.cilib.problem.coevolution.GameLearningOptimizationProblem
public class GameLearningOptimizationProblem
Optimize either a single player game or a game against hand coded opponents
Field Summary | |
---|---|
protected Game |
game
|
Fields inherited from class net.sourceforge.cilib.problem.coevolution.PerformanceEvaluationOptimizationProblem |
---|
fitnessCalculation, numberOfEvaluations |
Fields inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
dataSetBuilder, fitnessEvaluations |
Constructor Summary | |
---|---|
GameLearningOptimizationProblem()
|
|
GameLearningOptimizationProblem(GameLearningOptimizationProblem copy)
Copy constructor |
Method Summary | |
---|---|
protected Fitness |
calculateFitness(Type solution)
Determine the Fitness of the current Problem instance
based on the provided solution . |
DomainRegistry |
getBehaviouralDomain()
Returns the domain component that describes the search space of the needed behavioral characteristics of the problem. |
OptimisationProblemAdapter |
getClone()
Create a cloned copy of the current object and return it. |
DomainRegistry |
getDomain()
Returns the domain component that describes the search space for this problem. |
Game |
getGame()
|
void |
playGame(int currentPlayerID,
EntityScore currentScore)
This method should be called after all the players have been initialized for this game the required amount of games are played and the scores are stored |
void |
setGame(Game game)
|
Methods inherited from class net.sourceforge.cilib.problem.coevolution.PerformanceEvaluationOptimizationProblem |
---|
getNumberOfEvaluations, setFitnessCalculation, setNumberOfEvaluations |
Methods inherited from class net.sourceforge.cilib.problem.OptimisationProblemAdapter |
---|
accept, changeEnvironment, getChangeStrategy, getDataSetBuilder, getFitness, getFitnessEvaluations, setChangeStrategy, setDataSetBuilder |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Game game
Constructor Detail |
---|
public GameLearningOptimizationProblem()
public GameLearningOptimizationProblem(GameLearningOptimizationProblem copy)
copy
- Method Detail |
---|
public OptimisationProblemAdapter getClone()
getClone
in interface OptimisationProblem
getClone
in interface Problem
getClone
in interface Cloneable
getClone
in class OptimisationProblemAdapter
Object.clone()
public DomainRegistry getBehaviouralDomain()
public DomainRegistry getDomain()
DomainRegistry
object representing the search space.public void playGame(int currentPlayerID, EntityScore currentScore)
currentPlayerID
- the id of the player being optimizedcurrentScore
- the score'sprotected Fitness calculateFitness(Type solution)
Fitness
of the current Problem
instance
based on the provided solution
.
calculateFitness
in class OptimisationProblemAdapter
solution
- The Type
representing the candidate solution.
Fitness
of the solution
in the current Problem.OptimisationProblemAdapter.getFitness(Type, boolean)
public void setGame(Game game)
public Game getGame()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |