Applied Optimization with Julia
University of Hamburg
After this lecture, you will have:
To prepare for the upcoming lectures, we start by installing the Julia Programming Language and an Integrated Development Environment (IDE) to work with Julia.
If you are ever asked to add something to your “PATH”, do so!
Hello World!
Ctrl+Enter — labelled Strg on German keyboardsCtrl+Enter or Cmd+Enter, depending on your keybindings1Hello World! → perfect!Don’t worry if it is not running right away. We will fix this together!
Question: What will your savings be worth in 10 years?
Value after 10 years: 1343.92
.jl or .ipynb files as notebooksIf you use .jl files, you can also put them under version control with Git, as you will see later in this lecture.
Julia on the rightjl file and save it.jl files do not work for you, you can also click on Jupyter.ipynb file which you can use directly as notebooktutorial_v1.jl and tutorial_v2.jlIf you have any questions, feel free to ask!
Git is not required for the course, but strongly recommended: once you get used to it, it becomes invaluable, especially if you are working with a lot of code!
You can also synchronize your repository with GitHub or other hosting services. Then, your code is saved in a remote location, making it accessible from anywhere and allowing collaboration with others.
.jl file)Start using Git from day one! Even for small projects, it’s a good habit to develop.
Don’t forget to save your notebook before uploading it to Moodle!
The assignments are not mandatory, but highly recommended!
Dictionaries will become important later: they are how we will store and look up the data of our optimization models.
And that’s it for this lecture!
The remaining time we will already start working on the first problems.
Lauwens, B., & Downey, A. B. (2019). Think Julia: How to think like a computer scientist (First edition). O’Reilly®. Link to the free book website.
For more interesting literature to learn more about Julia, take a look at the literature list of this course.
Lecture II - First Steps in Julia | Dr. Tobias Vlćek | Home