Class sdm::ActionVFMaxplanWCSP
Class List > sdm > ActionVFMaxplanWCSP
#include <action_maxplan_wcsp.hpp>
Inherits the following classes: sdm::ActionVFBase, sdm::VarNaming
Public Types
Type | Name |
---|---|
typedef std::shared_ptr< State > | TData |
Public Functions
Type | Name |
---|---|
ActionVFMaxplanWCSP () | |
ActionVFMaxplanWCSP (const std::shared_ptr< SolvableByHSVI > & world) | |
Pair< std::shared_ptr< Action >, double > | createWCSPProblem (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, number t) |
virtual Pair< std::shared_ptr< Action >, double > | selectBestAction (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, number t) Select the best action and the hyperplan at t+1 associated for a state at a precise time. |
Public Functions inherited from sdm::ActionVFBase
Type | Name |
---|---|
ActionVFBase () | |
ActionVFBase (const std::shared_ptr< SolvableByHSVI > & world) | |
virtual Pair< std::shared_ptr< Action >, double > | selectBestAction (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, number t) = 0 Select the best action for a state at a precise time. |
virtual | ~ActionVFBase () |
Public Functions inherited from sdm::ActionVFInterface
Type | Name |
---|---|
virtual Pair< std::shared_ptr< Action >, double > | selectBestAction (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, number t) = 0 Select the best action for a state at a precise time. |
Public Functions inherited from sdm::VarNaming
See sdm::VarNaming
Type | Name |
---|---|
number | getNumber (const std::string &) Get the identifier associated with a given name. |
std::string | getVarNameIndividualHistory (const std::shared_ptr< HistoryInterface > & ihistory, const number agent) |
std::string | getVarNameIndividualHistoryDecisionRule (const std::shared_ptr< Action > &, const std::shared_ptr< HistoryInterface > &, const number &) Get the name associated with a pair of action and individual history. |
std::string | getVarNameJointHistoryDecisionRule (const std::shared_ptr< Action > &, const std::shared_ptr< JointHistoryInterface > &) Get the name associated with a pair of action and joint history. |
std::string | getVarNameWeight (number) Get the name of a free variable. |
std::string | getVarNameWeightedStateJointHistory (const std::shared_ptr< State > &, const std::shared_ptr< State > &, const std::shared_ptr< JointHistoryInterface > &) Get the Var Name Weighted State __Joint History object. |
void | setNumber (const std::string &, number) Set pair name identifier for a given variable. |
Protected Attributes
Type | Name |
---|---|
double | max defines the maximum value in the domain of the payoff function |
long | offset = = 1000000000000 factor used to convert real values into integer costs |
std::shared_ptr< BeliefInterface > | tmp_representation |
Protected Attributes inherited from sdm::ActionVFBase
Type | Name |
---|---|
std::shared_ptr< SolvableByHSVI > | world_ |
Protected Attributes inherited from sdm::VarNaming
See sdm::VarNaming
Type | Name |
---|---|
RecursiveMap< std::string, number > | variables mapping from variable names to variable identifiers |
Protected Functions
Type | Name |
---|---|
void | determineMaxValue (const std::shared_ptr< State > & state, number t) |
long | getCost (double) Returns a cost value. |
double | getValueAt (const std::shared_ptr< OccupancyStateInterface > & occupancy_state, const std::shared_ptr< JointHistoryInterface > & joint_history, const std::shared_ptr< Action > & action, const std::shared_ptr< State > & next_hyperplan, number t) |
Public Types Documentation
typedef TData
using sdm::ActionVFMaxplanWCSP::TData = std::shared_ptr<State>;
Public Functions Documentation
function ActionVFMaxplanWCSP [1/2]
sdm::ActionVFMaxplanWCSP::ActionVFMaxplanWCSP ()
function ActionVFMaxplanWCSP [2/2]
sdm::ActionVFMaxplanWCSP::ActionVFMaxplanWCSP (
const std::shared_ptr< SolvableByHSVI > & world
)
function createWCSPProblem
Pair < std::shared_ptr< Action >, double > sdm::ActionVFMaxplanWCSP::createWCSPProblem (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & state,
number t
)
function selectBestAction
virtual Pair < std::shared_ptr< Action >, double > sdm::ActionVFMaxplanWCSP::selectBestAction (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & state,
number t
)
Parameters:
const
std::shared_ptr<ValueFunction>& vf : Value functionconst
std::shared_ptr<State>& state : current statenumber
t : time step
Returns:
Pair<std::shared_ptr<Action>,TData> : best action and the hyperplan at t+1 associated
Implements sdm::ActionVFBase::selectBestAction
Protected Attributes Documentation
variable max
double sdm::ActionVFMaxplanWCSP::max;
variable offset
long sdm::ActionVFMaxplanWCSP::offset;
variable tmp_representation
std::shared_ptr<BeliefInterface> sdm::ActionVFMaxplanWCSP::tmp_representation;
Protected Functions Documentation
function determineMaxValue
void sdm::ActionVFMaxplanWCSP::determineMaxValue (
const std::shared_ptr< State > & state,
number t
)
function getCost
long sdm::ActionVFMaxplanWCSP::getCost (
double
)
Parameters:
double
defines a real value
function getValueAt
double sdm::ActionVFMaxplanWCSP::getValueAt (
const std::shared_ptr< OccupancyStateInterface > & occupancy_state,
const std::shared_ptr< JointHistoryInterface > & joint_history,
const std::shared_ptr< Action > & action,
const std::shared_ptr< State > & next_hyperplan,
number t
)
The documentation for this class was generated from the following file src/sdm/utils/value_function/action_vf/action_maxplan_wcsp.hpp