Class sdm::ActionVFSawtoothWCSP
Class List > sdm > ActionVFSawtoothWCSP
#include <action_sawtooth_wcsp.hpp>
Inherits the following classes: sdm::ActionVFBase, sdm::VarNaming
Public Types
Type | Name |
---|---|
typedef std::shared_ptr< State > | TData |
Public Functions
Type | Name |
---|---|
ActionVFSawtoothWCSP () | |
ActionVFSawtoothWCSP (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 |
Pair< std::shared_ptr< State >, double > | representation |
std::unordered_map< std::shared_ptr< State >, std::shared_ptr< Action > > | state_linked_to_decision_rule |
bool | support_empty |
std::shared_ptr< Action > | support_of_the_next_action |
std::shared_ptr< State > | support_of_the_next_hidden_state |
std::shared_ptr< HistoryInterface > | support_of_the_next_history |
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 | createWCSPCostGraph (std::shared_ptr< WeightedCSPSolver > & wcsp_solver, const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, const std::set< std::shared_ptr< JointHistoryInterface >> & set_joint_history, number t) |
void | createWCSPVariable (std::shared_ptr< WeightedCSPSolver > &, const std::shared_ptr< State > & state, number t) |
std::set< std::shared_ptr< JointHistoryInterface > > | determineJointHistory (const std::shared_ptr< State > & state) |
void | determineMaxValue (const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, number t) |
Cost | getCost (double) Returns a cost value. |
double | getValueAt (const std::shared_ptr< ValueFunction > & vf, 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) |
Pair< std::shared_ptr< Action >, double > | getWSCPResult (std::shared_ptr< WeightedCSPSolver > & wcsp_solver, const std::shared_ptr< ValueFunction > & vf, const std::shared_ptr< State > & state, const std::set< std::shared_ptr< JointHistoryInterface >> & set_joint_history, number t) |
Public Types Documentation
typedef TData
using sdm::ActionVFSawtoothWCSP::TData = std::shared_ptr<State>;
Public Functions Documentation
function ActionVFSawtoothWCSP [1/2]
sdm::ActionVFSawtoothWCSP::ActionVFSawtoothWCSP ()
function ActionVFSawtoothWCSP [2/2]
sdm::ActionVFSawtoothWCSP::ActionVFSawtoothWCSP (
const std::shared_ptr< SolvableByHSVI > & world
)
function createWCSPProblem
Pair < std::shared_ptr< Action >, double > sdm::ActionVFSawtoothWCSP::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::ActionVFSawtoothWCSP::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::ActionVFSawtoothWCSP::max;
variable offset
long sdm::ActionVFSawtoothWCSP::offset;
variable representation
Pair<std::shared_ptr<State>,double> sdm::ActionVFSawtoothWCSP::representation;
variable state_linked_to_decision_rule
std::unordered_map<std::shared_ptr<State>,std::shared_ptr<Action> > sdm::ActionVFSawtoothWCSP::state_linked_to_decision_rule;
variable support_empty
bool sdm::ActionVFSawtoothWCSP::support_empty;
variable support_of_the_next_action
std::shared_ptr<Action> sdm::ActionVFSawtoothWCSP::support_of_the_next_action;
variable support_of_the_next_hidden_state
std::shared_ptr<State> sdm::ActionVFSawtoothWCSP::support_of_the_next_hidden_state;
variable support_of_the_next_history
std::shared_ptr<HistoryInterface> sdm::ActionVFSawtoothWCSP::support_of_the_next_history;
Protected Functions Documentation
function createWCSPCostGraph
void sdm::ActionVFSawtoothWCSP::createWCSPCostGraph (
std::shared_ptr< WeightedCSPSolver > & wcsp_solver,
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & state,
const std::set< std::shared_ptr< JointHistoryInterface >> & set_joint_history,
number t
)
function createWCSPVariable
void sdm::ActionVFSawtoothWCSP::createWCSPVariable (
std::shared_ptr< WeightedCSPSolver > &,
const std::shared_ptr< State > & state,
number t
)
function determineJointHistory
std::set< std::shared_ptr< JointHistoryInterface > > sdm::ActionVFSawtoothWCSP::determineJointHistory (
const std::shared_ptr< State > & state
)
function determineMaxValue
void sdm::ActionVFSawtoothWCSP::determineMaxValue (
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & state,
number t
)
function getCost
Cost sdm::ActionVFSawtoothWCSP::getCost (
double
)
Parameters:
double
defines a real value
function getValueAt
double sdm::ActionVFSawtoothWCSP::getValueAt (
const std::shared_ptr< ValueFunction > & vf,
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
)
function getWSCPResult
Pair < std::shared_ptr< Action >, double > sdm::ActionVFSawtoothWCSP::getWSCPResult (
std::shared_ptr< WeightedCSPSolver > & wcsp_solver,
const std::shared_ptr< ValueFunction > & vf,
const std::shared_ptr< State > & state,
const std::set< std::shared_ptr< JointHistoryInterface >> & set_joint_history,
number t
)
The documentation for this class was generated from the following file src/sdm/utils/value_function/action_vf/action_sawtooth_wcsp.hpp