Applied Optimization with Julia
University of Hamburg - Fall 2025
= operatorYou can use the typeof function to check the type of a variable.
[ and ] operatorsYou can use the push! function to add elements to a vector or the pop! function to remove elements from a vector.
== checks if two values are equal!= checks if two values are not equal< checks if one value is smaller than the other>= checks if one value is greater than or equal to the other&& checks if two values are true|| checks if at least one of two values is truefor loop repeats code for a fixed number of timeswhile loop repeats code until a condition is metif statement checks if a condition is trueelse executes code if a condition is falseelseif checks if a condition is true and executes if it isglobal keyword defines a global variablelocal keyword defines a local variablelet keyword defines a local variableGlobal variables usually make your code much slower, if they are not defined as constants. But for this leeture this is not that important.
You can ask questions anytime in class or via email!
And that’s it for this lecture!
The remaining time we will already start working on the problems of the third lecture.
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 III - Packages and Data Management | Dr. Tobias Vlćek | Home