ibpsa / project1-boptest

Building Optimization Performance Tests
Other
102 stars 66 forks source link

Materials for RLEM2023 workshop #585

Closed javiarrobas closed 8 months ago

javiarrobas commented 8 months ago

This is to generate the necessary materials for the BS2023 workshop planned for November 12, 2023. The idea is to use a similar format to the workshop held for BS2021 since we have the same time (3.5 hours) but slightly change the program to include a part on BOPTEST-Gym. The agenda can be found in this link:

Presentation: BOPTEST motivation, goals, and approach (15m)

Exercise 1: Introductory hands-on tutorial on the software (1h15m)

Coffee break (10m)

Presentation 2: An example MPC controller in BOPTEST (10m)

Exercise 2: Learning BOPTEST-Gym, the Gym interface of BOPTEST (20m)

Exercise 3: Timed common exercise (1h10m)

Wrap-Up and follow-up explanation (10m)

To-dos:

javiarrobas commented 8 months ago

@dhblum @kbenne I've implemented a first working version of the notebook for the workshop here. Please note it's still using BOPTEST-Service v0.4.0. Please let me know whether Service is updated to v0.5.0 implement the corresponding edits. If we do not update before the workshop we should work out a Google sheet for comparing KPIs in the timed exercise. If we do the update we should explain better in the workshop how the comparison is going to be made. @dhblum any thoughts on that?

The notebook is very similar to the one we used for BS2021 but also includes a small section on BOPTEST-Gym and updates the Follow-up section to announce the ADRENALIN challenge.

Any input/suggestion is very welcome!

dhblum commented 8 months ago

@JavierArroyoBastida Thank you very much for setting this up. BOPTEST-Service has been updated to support v0.5.0. So if you hit api.boptest.net, you'll be using the latest version.

javiarrobas commented 8 months ago

@dhblum I've just updated the notebook to use json instead of data in the API calls. See here. I also indicated we work with BOPTEST version 0.5.0. Note that the notebook could run without the update to json in the API call when working with v0.5.0, but I implemented the change anyhow. Seems that the part of BOPTEST-Gym of the notebook is working as well even though I did not change data by json in BOPTEST-Gym nor changed it to test against BOPTEST v0.5.0. However, I plan to do the change there as well before the workshop and consequently update BOPTEST-Gym to v0.5.0 (without any other major update).

One thing that is still open is how we are going to compare the results of the timed exercise. Do you think we could ask participants to use the submit API call and compare the results in the dashboard?

Other than that, we just need to prepare slides for the workshop. I suggest to use almost same presentations we used for BS2021 but changing headers/dates or other adjustments needed, and drop them to our drive.

dhblum commented 8 months ago

Thanks @JavierArroyoBastida. I think it's better to use json so thanks for updating.

About results comparison, I'm not sure about the dashboard. The dashboard expects some updates to be deployed but I don't think @kbenne's gotten to that yet. We'd have to caveat that the dashboard data may not persist yet at this point so data could still be lost. And we'd have to add a piece to the tutorial about how to register for the dashboard and use the submit API. We'd probably instruct to use a tag "RLEM23" or something. The alternative would be to do what we did last time, create a shared google sheet that participants can log their results, and then we can also plot them etc.

I plan to just use for the intro what I used for BS23 with updated title, and maybe anything else that needs updating. Dropping them in the drive for now is fine, but eventually we can post to the repo as we've done others.

Are we planning to keep all the materials on your fork until after the workshop when we merge back to origin? Just thinking about what links we give out to access the colab.

kbenne commented 8 months ago

I'm sorry, but the 0.5.0 update of the service has been a bit bumpy so I think it is going to be a struggle to have dashboard updates.

On a different note, @JavierArroyoBastida please keep me updated on how your testing and preparation goes while using the 0.5.0 version. We've had some reports about timeouts, which have me a bit concerned.

javiarrobas commented 8 months ago

Then I suggest using a shared google sheet as in the past. I've created an empty copy of previous versions in our drive, that should always work. I suggest keeping the materials in my fork until after the workshop. That allows more flexibility for quick edits, and we can merge a more stable version once the workshop is done. @kbenne so far Service has always worked fine. I've been able to interact with it without any issue. I'll let you know otherwise.

dhblum commented 8 months ago

@JavierArroyoBastida All sounds good. Glad you haven't seen Service issues too.

dhblum commented 8 months ago

@JavierArroyoBastida I've uploaded the intro presentation to the drive.

javiarrobas commented 8 months ago

I see. Thanks @dhblum! I'm upgrading BOPTEST-Gym to use Service 0.5.0 here. It'll be ready by today or tomorrow the latest, but our RLEM tutorial notebook runs independently of these edits since it's little what we go into BOPTEST-Gym.

dhblum commented 8 months ago

Closed by https://github.com/ibpsa/project1-boptest/pull/586.