ucuapps / modelicagym Goto Github PK
View Code? Open in Web Editor NEWModelica models integration with Open AI Gym
License: GNU General Public License v3.0
Modelica models integration with Open AI Gym
License: GNU General Public License v3.0
Hi!
I'd like to share the work I've been doing highly inspired in modelicagym.
Hi,
the step()
function usually returns a tuple which first argument is the state.
The state type turns out to be set, for the default case, by get_state(result)
of the do_simulation()
function and it is a tuple (modelica_base_env@241).
However, in case the step functions catches a done()
, then the step function returns a np.array(self.state)
; thus being different from the previous case.
Am I correct?
And: why returning a tuple instead of an array which is much more comfortable to use? Is it because the FMU might return integers instead of all-reals?
Thanks!
Hi,
I would suggest to set options["result_handling"] = "memory"
as default in modelica_base_env/do_simulation
.
Writing to disk is a rather expensive operation (my code was running 15x slower because of this) and changing the setting would require overriding the do_simulation
(I don't see any kwargs that passes such option to the underlying PyFMI model
, right?)
While for PyFMI was making sense to leave a different default, I think that ModelicaGym users might not be interested in having a variable dump, especially if this comes at such an high performance cost.
When running from the example dir I get ModuleNotFoundError: No module named 'gymalgs'
setup_test is working.
when changed back to ..gymalgs.rl I get
from ..gymalgs.rl import QLearner ValueError: attempted relative import beyond top-level package
can load modelicagym.gymalgs.rl but then I get ModuleNotFoundError: No module named 'examples'
somewhere down the line
As I understood by reading the tutorial on how to integrate FMU, it is only possible to use one FMU for control in this framework. My aim is to control a battery model exported as FMU, which is located in a large power network. For this purpose, I need my observation space to include quantities outside of the battery FMU. For example, if my battery is located in a bus with a photovoltaic connected (which is also another FMU) to be able to include its power in the observation space.
Is something like that possible? Would it be possible with some modifications?
The installation procedure is not working.
Mainly I guess because svn co https://svn.jmodelica.org/trunk JModelica
is off.
Could you work it around? Im trying do it here too.
Another question, can this app run on windows?
I would like to ask if I can use modelicagym for windows and whether there are any disadvantages to using windows compared to linux.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.