AIToolbox
A library that offers tools for AI problem solving.
|
This class solves an MDP using Linear Programming. More...
#include <AIToolbox/MDP/Algorithms/LinearProgramming.hpp>
Public Member Functions | |
template<IsModel M> | |
std::tuple< double, ValueFunction, QFunction > | operator() (const M &m) |
This function solves the input MDP using linear programming. More... | |
This class solves an MDP using Linear Programming.
This class is a very simple wrapper for solving an MDP using linear programming. The solution can only be computed for infinite horizons, and the precision is the ones used by the underlying LP library.
It creates a set of |S| variables and |S|*|A| constraints, which when solved obtain the optimal ValueFunction values.
From there we compute the optimal QFunction, and we return them.
std::tuple< double, ValueFunction, QFunction > AIToolbox::MDP::LinearProgramming::operator() | ( | const M & | m | ) |
This function solves the input MDP using linear programming.
M | The type of the solvable MDP. |
m | The MDP that needs to be solved. |