AIToolbox
A library that offers tools for AI problem solving.
|
Go to the documentation of this file. 1 #ifndef AI_TOOLBOX_FACTORED_BANDIT_MULTI_OBJECTIVE_VARIABLE_ELIMINATION_HEADER_FILE
2 #define AI_TOOLBOX_FACTORED_BANDIT_MULTI_OBJECTIVE_VARIABLE_ELIMINATION_HEADER_FILE
61 template <
typename Iterable>
65 for (
const auto & rule : inputRules) {
66 auto & factorNode = graph.
getFactor(rule.action.first)->getData();
69 const auto it = std::lower_bound(
70 std::begin(factorNode),
73 [](
const auto & rule,
size_t rhs) {
return rule.first < rhs;}
76 if (it != std::end(factorNode) && it->first ==
id)
77 it->second[0].vals += rule.values;
82 return (*
this)(A, graph);
Rewards vals
Definition: MultiObjectiveVariableElimination.hpp:45
Definition: MultiObjectiveVariableElimination.hpp:44
PartialAction tag
Definition: MultiObjectiveVariableElimination.hpp:46