-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from rdnfn/dev/general
Add support for sinergym and other fixes
- Loading branch information
Showing
17 changed files
with
146 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
beobench/experiment/definitions/experiment_003_sinergym.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""An experiment to test sinergym integration.""" | ||
|
||
import ray.tune | ||
from beobench.experiment.definitions.default import problem, method, rllib_setup | ||
|
||
|
||
problem = { | ||
"name": "sinergym_test_problem", | ||
"description": ("Control problem corresponding to " "created by sinergym env ''."), | ||
"problem_library": "sinergym", | ||
"rllib_experiment_config": { | ||
"config": { | ||
"env": "sinergym-Eplus-5Zone-hot-continuous-v1", | ||
"env_config": { | ||
"name": "Eplus-5Zone-hot-continuous-v1", | ||
"normalize": True, | ||
}, | ||
"gamma": 0.999, | ||
"output": "/root/ray_results/debug/", | ||
"output_compress_columns": [], | ||
"soft_horizon": False, | ||
"no_done_at_end": False, | ||
"horizon": 10000, | ||
}, | ||
"stop": {"timesteps_total": 400000}, | ||
}, | ||
} | ||
|
||
rllib_setup = { | ||
"rllib_experiment_config": { | ||
"config": { | ||
# Utilities settings | ||
"framework": "torch", | ||
"log_level": "WARNING", | ||
"num_workers": 8, # 1 for silent mode, can at least be 6 | ||
"num_gpus": 1, | ||
"seed": ray.tune.randint(0, 10000000), | ||
}, | ||
"log_to_file": True, | ||
"checkpoint_freq": 10000, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.