#include <simAnnPlanner.h>
Public Member Functions | |
virtual PlannerType | getType () |
The type of this planner, for easier run-time check. | |
virtual bool | initialized () |
Checks if a model state has been set. | |
void | setAnnealingParameters (AnnealingType y) |
virtual void | setModelState (const GraspPlanningState *modelState) |
Has to be called BEFORE any planning can begin. | |
SimAnnPlanner (Hand *h) | |
Also initializes the simulated annealer. | |
~SimAnnPlanner () | |
Protected Member Functions | |
void | mainLoop () |
Calls a simulated annealing step and buffers the best solutions. | |
void | resetParameters () |
Also resets the simulated annealer. | |
SimAnnPlanner () | |
Protected Attributes | |
SimAnn * | mSimAnn |
The instance that is used to do simulated annealing. |
This is the simplest implementation of the EGPlanner. It also has a SimAnn class for doing simulated annealing over all variables. This is exactly what it does in the mainLoop() fctn. It buffers the best states (with lowest energy) as it finds them.
Definition at line 48 of file simAnnPlanner.h.
SimAnnPlanner::SimAnnPlanner | ( | ) | [inline, protected] |
Definition at line 53 of file simAnnPlanner.h.
SimAnnPlanner::SimAnnPlanner | ( | Hand * | h | ) |
Also initializes the simulated annealer.
Definition at line 40 of file simAnnPlanner.cpp.
SimAnnPlanner::~SimAnnPlanner | ( | ) |
Definition at line 49 of file simAnnPlanner.cpp.
virtual PlannerType SimAnnPlanner::getType | ( | ) | [inline, virtual] |
The type of this planner, for easier run-time check.
Implements EGPlanner.
Reimplemented in GuidedPlanner, LoopPlanner, OnLinePlanner, and TimeTester.
Definition at line 62 of file simAnnPlanner.h.
bool SimAnnPlanner::initialized | ( | ) | [virtual] |
Checks if a model state has been set.
Reimplemented from EGPlanner.
Definition at line 73 of file simAnnPlanner.cpp.
void SimAnnPlanner::mainLoop | ( | ) | [protected, virtual] |
Calls a simulated annealing step and buffers the best solutions.
Implements EGPlanner.
Reimplemented in GuidedPlanner, OnLinePlanner, TimeTester, and MTTester.
Definition at line 106 of file simAnnPlanner.cpp.
void SimAnnPlanner::resetParameters | ( | ) | [protected, virtual] |
Also resets the simulated annealer.
Reimplemented from EGPlanner.
Reimplemented in LoopPlanner, and OnLinePlanner.
Definition at line 64 of file simAnnPlanner.cpp.
void SimAnnPlanner::setAnnealingParameters | ( | AnnealingType | y | ) |
Definition at line 55 of file simAnnPlanner.cpp.
void SimAnnPlanner::setModelState | ( | const GraspPlanningState * | modelState | ) | [virtual] |
Has to be called BEFORE any planning can begin.
It tells the planner how the state it is searching on looks like (how many variables, etc).
Definition at line 80 of file simAnnPlanner.cpp.
SimAnn* SimAnnPlanner::mSimAnn [protected] |
The instance that is used to do simulated annealing.
Definition at line 52 of file simAnnPlanner.h.