Giter Site home page Giter Site logo

littlewebcat / drl-base-ems Goto Github PK

View Code? Open in Web Editor NEW
16.0 1.0 1.0 5.04 MB

DRL-Base-EMS for HEVs

License: MIT License

Python 17.61% HTML 49.91% Jupyter Notebook 32.48%
deep-reinforcement-learning energy-management-strategies ppo-pytorch pytorch sac-pytorch hybrid-electrical-vehicle

drl-base-ems's People

Contributors

littlewebcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

seasonedleo

drl-base-ems's Issues

About The Gym Env

Hello, thanks for your open source. I was wondering where you got your vehicle reinforcement learning environment? I'd like to see if there's any documentation on it. I looked on the NERL/FASTsim website but couldn't find it.

TypeError: reset() got an unexpected keyword argument 'seed'

When I run all the control algorithms, there is an issue with the seeds
"Traceback (most recent call last):
File "D:\OneDrive - mail.nwpu.edu.cn\HEVpy\DRL-Base-EMS-main\Continuous Algorithms\ppo.py", line 191, in
test_ppo()
File "D:\OneDrive - mail.nwpu.edu.cn\HEVpy\DRL-Base-EMS-main\Continuous Algorithms\ppo.py", line 115, in test_ppo
train_collector = Collector(
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 80, in init
self.reset(False)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 131, in reset
self.reset_env(gym_reset_kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\data\collector.py", line 147, in reset_env
obs, info = self.env.reset(**gym_reset_kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\env\venvs.py", line 277, in reset
self.workers[i].send(None, **kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\tianshou\env\worker\dummy.py", line 36, in send
self.result = self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\shimmy\openai_gym_compatibility.py", line 106, in reset
return self.gym_env.reset(seed=seed, options=options)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\time_limit.py", line 68, in reset
return self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\order_enforcing.py", line 42, in reset
return self.env.reset(**kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\wrappers\env_checker.py", line 45, in reset
return env_reset_passive_checker(self.env, **kwargs)
File "E:\anaconda3\envs\torch2\lib\site-packages\gym\utils\passive_env_checker.py", line 192, in env_reset_passive_checker
result = env.reset(**kwargs)
TypeError: reset() got an unexpected keyword argument 'seed'"

name 'sim_drive_sub' is not defined

Hello There

Thanks for making this repo available. I am exploring this repo. I tried running the code and using vehcile_discrete.py . I loaded the udss.csv and the FASTSim_py_veh_db.csv file works fine until here.

However, when I ran the following code :

output = sim_drive(cyc, veh)

I get the error : name 'sim_drive_sub' is not defined. I tried looking for this function , seems like this function is missing . Could you please help ?

`NameError Traceback (most recent call last)
Cell In [7], line 1
----> 1 output = sim_drive(cyc, veh)

File ~\Anaconda3\envs\rllib\Lib\site-packages\gym\envs\classic_control\vehicle_discrete.py:329, in sim_drive(cyc, veh)
326 if cyc_num=='one':
327 # one cycle
328 sim_count += 1
--> 329 output = sim_drive_sub(cyc, veh, initSoc)
330 ess2fuelKwh = abs( output['ess2fuelKwh'] )
331 else:
332 ##########################################################################
333 ##########################################################################
334 ##########################################################################
335 # multiple cycle

NameError: name 'sim_drive_sub' is not defined`

Please upload Requirement file

Hello Thanks for making this open . Could you please upload requirement file with this . I have tried to run this but getting errors , potentialy due to mismathced versions of the libraries I am using . It will help if you could please upload the requirements file .

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.