Closed eranschweitzer closed 2 years ago
@eranschweitzer, does this produce identical results as the Python examples? I'm assuming not because of differences in implementation of the RNG.
Correct. The results are similar but not identical. There might be a way to figure out how to get them identical because I believe the underlying random number generation algorithm is the same, but I don't think it's worth it.
Just for reference, here is the results for the Battery SOC in the python example:
And here's the result in the matlab example:
I’ve messed around some with creating a challenge related to predicting the next “random” number in a sequence — what I found is that with the same starting seed, the default random number generating algorithms for C/C++, Go, and (iirc) Python produced different results.
On Thursday, July 21, 2022, Eran @.***> wrote:
Correct. The results are similar but not identical. There might be a way to figure out how to get them identical because I believe the underlying random number generation algorithm is the same, but I don't think it's worth it.
Just for reference, here is the results for the Battery SOC in the python example: [image: advanced_default_battery_SOCs_python] https://user-images.githubusercontent.com/28018315/180304155-0cac254f-9f30-410c-b335-39930b125925.png
And here's the result in the matlab example: [image: advanced_default_battery_SOCs_matlab] https://user-images.githubusercontent.com/28018315/180304182-367899f1-0b20-4699-95e5-43f23c72fa21.png
— Reply to this email directly, view it on GitHub https://github.com/GMLC-TDC/HELICS-Examples/pull/73#issuecomment-1191877365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JBZ67KSU434PDSN4TEI3VVGTSZANCNFSM54EVXAHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Summary
If merged this pull request will provide a demonstration of how to use Helics with Matlab via matHELICS
This closes #64.
Proposed changes
This is simply a duplication of the advanced default example to matlab.