bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
multi_agent_trainer.h File Reference
#include "bitrl/base/bitrl_log.h"
#include "bitrl/base/bitrl_types.h"
#include "bitsim/bitsim_consts.h"
#include <chrono>
#include <concepts>
#include <functional>
#include <vector>
Include dependency graph for multi_agent_trainer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bitrl::rl::multi_agent::MultiAgentEpisodeResult
 What one episode of a multi-agent environment gave. More...
struct  bitrl::rl::multi_agent::MultiAgentTrainerConfig
 The settings of MultiAgentTrainer. More...
struct  bitrl::rl::multi_agent::MultiAgentTrainingResult
 What MultiAgentTrainer::train() gave: an entry per episode. More...
class  bitrl::rl::multi_agent::MultiAgentTrainer< EnvType, LearnerType >
 Train a team of learners on a multi-agent environment, an episode at a time. More...

Namespaces

namespace  bitrl
 Various utilities used when working with RL problems.
namespace  bitrl::rl
namespace  bitrl::rl::multi_agent
namespace  bitrl::rl::multi_agent::detail

Functions

template<typename EnvType, typename ActorType>
requires multi_agent_actor<ActorType, EnvType>
MultiAgentEpisodeResult bitrl::rl::multi_agent::run_episode (EnvType &env, ActorType &actor, const std::function< void(const typename EnvType::time_step_type &)> &on_step={})
 Play one episode: reset env, then let actor choose the joint actions until the episode is over.
template<typename TimeStepType>
void bitrl::rl::multi_agent::detail::accumulate_step (MultiAgentEpisodeResult &result, const TimeStepType &step)
template<typename TimeStepType>
bool bitrl::rl::multi_agent::detail::all_done (const TimeStepType &step)