Please try to prepare the session by yourself before coming to class. This means you have to:
Go to https://julialang.org/downloads/platform/ and follow the instructions relevant to your OS (Windows, Mac or Linux).
Go to https://github.com/axelparmentier/REOP-2A-ENPC-TP1, click on the green button Code
and then Download ZIP
. Extract the archive wherever you want.
Open a terminal and launch Julia using the command julia
. Then, copy-paste the following commands into the REPL:
using Pkg
Pkg.add("IJulia")
using IJulia
notebook()
This should open an internet browser and display a window called Jupyter.
Within Jupyter, navigate to the place where you extracted REOP-2A-ENPC-TP1
and open the file named Metaheuristics using Julia.ipynb
. Try to run every cell once in order. If no bug is triggered, you are ready for the practical session.
If you are looking for a command or function you don't know, start with https://juliadocs.github.io/Julia-Cheat-Sheet/.
If you want to know more about Julia syntax and functionalities, check out the official documentation at https://docs.julialang.org/en/v1/ or the course https://en.wikibooks.org/wiki/Introducing_Julia. A more in-depth coverage is given by https://benlauwens.github.io/ThinkJulia.jl/latest/book.html.
- Graphs: https://juliagraphs.org/
- Optimization: https://www.juliaopt.org/
- Statistics: https://juliastats.org/
- Plotting: https://github.com/JuliaPy/PyPlot.jl or https://github.com/JuliaPlots
- Utilities: https://github.com/timholy/ProgressMeter.jl
- Anything else: https://juliaobserver.com/packages or https://juliahub.com/ui/Packages
Here is a four-step debugging procedure that works 99% of the time:
- Try to understand the bug by tracking its origin.
- If this doesn't work, copy-paste the bug message into Google and read the first three forum answers about it.
- If that doesn't work, sleep on it and try again tomorrow.
- If none of the previous methods work, email your teaching assistant.