$darkmode
DENOPTIM
|
Runs a fitness provider task as defined in the static parameters. More...
Public Member Functions | |
FPRunner (FRParameters settings) | |
Constructor. More... | |
void | stopRun () |
Stops all subtasks and shutdown executor. More... | |
void | run () throws Exception |
Create and run the fitness task. More... | |
Package Attributes | |
final Map< FitnessTask, Future< Object > > | futures |
Storage of references to the submitted subtasks as Future . More... | |
final List< FitnessTask > | submitted |
Storage of references to the submitted subtasks. More... | |
final ThreadPoolExecutor | tpe |
Asynchronous tasks manager. More... | |
Private Member Functions | |
void | cleanupCompleted () |
Removes only tasks that are marked as completed. More... | |
void | cleanup () |
clean all reference to submitted tasks More... | |
Private Attributes | |
FRParameters | settings |
The parameters controlling the. More... | |
int | numThreads = 1 |
Number of parallel fitness evaluations we run. More... | |
Runs a fitness provider task as defined in the static parameters.
This class is meant to execute fitness provider tasks from the GUI or the CLI in a stand-alone fashion, i.e., without running GARunner
or FragSpaceExplorer
.
Definition at line 56 of file FPRunner.java.
denoptim.programs.fitnessevaluator.FPRunner.FPRunner | ( | FRParameters | settings | ) |
Constructor.
Definition at line 91 of file FPRunner.java.
References denoptim.logging.StaticLogger.appLogger, denoptim.programs.fitnessevaluator.FPRunner.cleanup(), denoptim.programs.fitnessevaluator.FPRunner.futures, denoptim.programs.fitnessevaluator.FPRunner.numThreads, denoptim.programs.fitnessevaluator.FPRunner.run(), denoptim.programs.fitnessevaluator.FPRunner.settings, denoptim.programs.fitnessevaluator.FPRunner.submitted, and denoptim.programs.fitnessevaluator.FPRunner.tpe.
|
private |
clean all reference to submitted tasks
Definition at line 270 of file FPRunner.java.
References denoptim.programs.fitnessevaluator.FPRunner.futures, denoptim.programs.fitnessevaluator.FPRunner.submitted, and denoptim.programs.fitnessevaluator.FPRunner.tpe.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.stopRun().
|
private |
Removes only tasks that are marked as completed.
Definition at line 246 of file FPRunner.java.
References denoptim.programs.fitnessevaluator.FPRunner.futures, and denoptim.programs.fitnessevaluator.FPRunner.submitted.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.run().
void denoptim.programs.fitnessevaluator.FPRunner.run | ( | ) | throws Exception |
Create and run the fitness task.
Exception |
Definition at line 171 of file FPRunner.java.
References denoptim.logging.StaticLogger.appLogger, denoptim.programs.fitnessevaluator.FPRunner.cleanupCompleted(), denoptim.constants.DENOPTIMConstants.EOL, denoptim.programs.fitnessevaluator.FPRunner.futures, denoptim.programs.fitnessevaluator.FRParameters.getInputFile(), denoptim.programs.fitnessevaluator.FRParameters.getOutputFile(), denoptim.programs.fitnessevaluator.FRParameters.getWallTime(), denoptim.programs.RunTimeParameters.getWorkDirectory(), denoptim.programs.fitnessevaluator.FPRunner.numThreads, denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.io.DenoptimIO.readSDFFile(), denoptim.io.DenoptimIO.readText(), denoptim.programs.fitnessevaluator.FPRunner.settings, denoptim.programs.fitnessevaluator.FPRunner.submitted, denoptim.programs.fitnessevaluator.FPRunner.tpe, and denoptim.io.DenoptimIO.writeData().
Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FitnessRunner.runProgram().
void denoptim.programs.fitnessevaluator.FPRunner.stopRun | ( | ) |
Stops all subtasks and shutdown executor.
Definition at line 158 of file FPRunner.java.
References denoptim.programs.fitnessevaluator.FPRunner.cleanup(), and denoptim.programs.fitnessevaluator.FPRunner.tpe.
Referenced by denoptim.programs.fitnessevaluator.FitnessRunner.handleThrowable().
|
package |
Storage of references to the submitted subtasks as Future
.
Definition at line 61 of file FPRunner.java.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.cleanup(), denoptim.programs.fitnessevaluator.FPRunner.cleanupCompleted(), denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().
|
private |
Number of parallel fitness evaluations we run.
Definition at line 83 of file FPRunner.java.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().
|
private |
The parameters controlling the.
Definition at line 76 of file FPRunner.java.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().
|
package |
Storage of references to the submitted subtasks.
Definition at line 66 of file FPRunner.java.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.cleanup(), denoptim.programs.fitnessevaluator.FPRunner.cleanupCompleted(), denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), and denoptim.programs.fitnessevaluator.FPRunner.run().
|
package |
Asynchronous tasks manager.
Definition at line 71 of file FPRunner.java.
Referenced by denoptim.programs.fitnessevaluator.FPRunner.cleanup(), denoptim.programs.fitnessevaluator.FPRunner.FPRunner(), denoptim.programs.fitnessevaluator.FPRunner.run(), and denoptim.programs.fitnessevaluator.FPRunner.stopRun().