Esempio n. 1
0
func NewMDPEnvironment(cfg Config) (env rlglue.Environment) {
	mdp := NewSysMDP(cfg)
	env = discrete.NewMDPEnvironment(mdp, mdp.Task, (1<<uint(cfg.NumSystems))-1)
	return
}
Esempio n. 2
0
func NewEnv(cfg Config) (this *Env) {
	this = new(Env)
	this.mdp = NewMDP(cfg)
	this.MDPEnvironment = discrete.NewMDPEnvironment(this.mdp, this.mdp.GetTask(), 0)
	return
}