Dear all,
If you use Google Cloud free trial, you can get all scenarios evaluated in at most 20 minutes, or faster.
The steps are (15-30 minutes to configure).
- Subscribe to free Google Cloud trial for a year (a credit card required, but it costs you nothing).
- Create a preemptible instance using an N2 machine, 12 vCPUs and 16 GB RAM, Ubuntu 18.04.
- Allow connections to tcp 9000 port, as shown on a screenshot here: https://towardsdatascience.com/running-jupyter-notebook-in-google-cloud-platform-in-15-min-61e16da34d52
- Connect using ssh (using web interface).
- sudo apt get update
- Run the commands from GitHub - tom-doerr/commonroad-docker to get everything up and running (2 minutes).
- Connect to the public ip of your cloud instance and port 9000 using your web browser.
- In the Jupyter Notebook, upload the multicore batch processing notebook to the folder with the original batch processing notebook.
-
Set NUM_PROCESSES to 12.
-
Run and enjoy.
On 12 cores it takes at most 10 seconds instead of 120 seconds per processed scenario.
If 20 minutes is still too long, create a second VM instance and leave one half of scenarios for it, then it’ll take at most 10 minutes to evaluate all scenarios.
You can use the Jupyter web interface to edit your files. All your files are always preserved, unlike with Colaboratory.
Don’t forget to shut down your virtual machine, or you could run out of your free credit. You’d use 11 cents per hour out of the $268 free credit if you choose this solution.
I can see on Moodle that the submission deadline was extended by one week.