Daniel Weber

Results 14 comments of Daniel Weber

Thank you for the question and sorry for the late response. 1.: In general possible to built an FMU with MATLAB Simulink and use it with openmodelica-microgrid-gym (OMG). You only...

Define states and actions: states x: f, U, P, Q...? - global (net-wide) - component dependent actions a: - change of the droop parameter (not implemented jet) Planned: ODE, which...

component power as state or input? - dw=sum(P)/(Jw) -> Input - P is depending on w (and droop params) -> state

First example: * voltage considered as fixed * two inverters connected via an inductor, resistive load between inv1 & ground. - leads to B = [B12, -B12; -B12, B12] and...

Unstable for longer simulations: ![grafik](https://user-images.githubusercontent.com/1822491/89193106-c767a500-d5a5-11ea-8d8d-19a26a5dd4ae.png) ![grafik](https://user-images.githubusercontent.com/1822491/89193122-cd5d8600-d5a5-11ea-9506-8736229eaeb3.png) * Change solver * Calculate sign in matrix by hand to double-check due to it is working with -G (`p[k] += nomVolt * nomVolt...

https://github.com/upb-lea/openmodelica-microgrid-gym/blob/8073a3380766462fd8132844e0628ea238bdaa5a/openmodelica_microgrid_gym/env/modelica.py#L309 shift params from {values,...} to {...,self.net.params(delayed_action)} TAKE CARE: What if from net and model_params have the same key: `env.make( model_params={'r_load.resistor1.R': 10} )` and in `net -> Load(Component-class): 'r_load.resistor1.R': 20`...

Here: https://github.com/upb-lea/openmodelica-microgrid-gym/blob/8073a3380766462fd8132844e0628ea238bdaa5a/openmodelica_microgrid_gym/net/components.py#L179 use coponent.id('r_load') + '.' name from net ('resistor1.R : 10') instead if model_params (see above)

We have random noise, but it is sampled from a seeded distribution. Hence, we have a deterministic behavior, i.e. with the same bounds we can reproduce each of the above...

Seems like in the original silver paper they use different learning rates in the application, too: ![grafik](https://user-images.githubusercontent.com/1822491/109828641-1b6e6100-7c3d-11eb-8854-2dd9067429e5.png) https://arxiv.org/abs/1509.02971 p.11

Proof of concept: Delivers the same results for a known (P10) parameter setting) then Matlab and python do. Voltage: Matlab: ![grafik](https://github.com/upb-lea/ElectricGrid.jl/assets/1822491/6e2c566a-d1e7-4e8a-8c10-40b6dd55c5eb) Julia: ![grafik](https://github.com/upb-lea/ElectricGrid.jl/assets/1822491/845b91e7-c6af-4984-804a-44eebf1822af) Current: Matlab: ![grafik](https://github.com/upb-lea/ElectricGrid.jl/assets/1822491/41ee4ae5-f74a-426b-8cbc-0d578566cb90) Julia: ![grafik](https://github.com/upb-lea/ElectricGrid.jl/assets/1822491/0758d6b5-f0f0-46b0-86e1-d7bec410f62e)