25 #include "sgaction_maxminmax.hpp"
26 #include "sghyperplane.hpp"
27 #include <boost/archive/text_iarchive.hpp>
28 #include <boost/archive/text_oarchive.hpp>
29 #include <boost/serialization/utility.hpp>
51 SGStep(
const vector< list<SGAction_MaxMinMax>::const_iterator > & _actionTuple,
52 const vector<SG::Regime> & _regimeTuple,
55 const vector< list<SGAction_MaxMinMax> > & actions):
61 for (
int state = 0; state < _actionTuple.size(); state++)
65 auto action = actions[state].cbegin();
66 while (action->getAction() != _actionTuple[state]->getAction()
67 && action != actions[state].cend() )
78 const vector<int> & getActionTuple()
const {
return actionTuple;}
80 const vector<SG::Regime> & getRegimeTuple()
const {
return regimeTuple;}
88 template<
class Archive>
89 void serialize(Archive &ar,
const unsigned int version)
friend class boost::serialization::access
Serializes the SGStep object using boost.
Definition: sgstep.hpp:85
vector< SG::Regime > regimeTuple
Definition: sgstep.hpp:45
SGTuple pivot
Definition: sgstep.hpp:38
A single step of the max-min-max algorithm.
Definition: sgstep.hpp:36
SGStep(const vector< list< SGAction_MaxMinMax >::const_iterator > &_actionTuple, const vector< SG::Regime > &_regimeTuple, const SGTuple &_pivot, const SGHyperplane &_hyperplane, const vector< list< SGAction_MaxMinMax > > &actions)
Constructor.
Definition: sgstep.hpp:51
Represents a hyperplane in .
Definition: sghyperplane.hpp:39
SGHyperplane hyperplane
Definition: sgstep.hpp:39
void serialize(Archive &ar, const unsigned int version)
Serialize the iteration using Boost.
Definition: sgstep.hpp:89
vector< int > actionTuple
Definition: sgstep.hpp:41
Definition: sgtuple.hpp:52