This post is about the scoring of tied tied ambitions in the board game Arcs: Conflict & Collapse in the Reach and its upcoming expansion Arcs: Lost Vaults & Fated Leaders . In Arcs, players win by collecting the most power which they get by scoring various ambitions . These ambitions are about having the highest count of a specific resource type or other game marker. The base game of Arcs…
Survival Analysis for MIP Solver Running Time ¶ Inspired by the recent activity in open-source MIP solvers ( HiGHS is becoming stable after the 1.0 release and many users submitting bug reports, SCIP has become open-source software), I wanted to revisit some folklore about running times. When solving difficult problems, in particular, when running computational experiments, we have to choose a…
In a recent cookbook, the Healthspan Solution , the authors propose a new way to categorize food: the food triangle. First of all, only whole food ingredients are considered. Then, rather than grouping foods into one of the macronutrients (fat, protein and carbohydrates), they are sorted by energy density on the one hand (top / down), and by source (animal on the left, plants on the right) on the…
I am trying to solve a network design problem for gas pipeline networks (see PipeLayout ). In the original problem statement, only the coordinates of the source and sink nodes are given. Pipes can be connected in any way, also using Steiner nodes at any location. But I also consider a discretized variation of the problem, where the pipes are selected from a given ground structure. Initially, I…
The paper Solving Mixed-integer Control Problems by Sum Up Rounding With Guaranteed Integer Gap by Sager et al introduces a rounding strategy for control functions over time with respect to accumulated rounding error. In this post, we want to apply Sum Up Rounding to the timing of medicine intake, in particular to the case where we would like to ramp down the dose, but it is not practical to take…
Managing Exceptions with ResultTypes ¶ In this post, we want to briefly review some examples of exception handling, present the ResultTypes package as an alternative and finally, show how these mechanisms can cooperate nicely. Exceptions in Julia ¶ Julia supports Exceptions with mechanisms well-known from other languages: A function can throw an exception when facing invalid input or a situation…
Index Funds with Mixed-Integer-Programming ¶ We will analyze daily price data for stocks in the Dow Jones index and then try to build an accurate index fund using a small numbers of stocks therein. Similar material was already used in a presentation at PyData Berlin 2017. See the "Tour of popular packages" notebook . Back then, we worked with Julia 0.6 and used the packages DataFrames , Plots and…
We compare the macronutrional content of baby formula with that of cow's milk and then try to recreate the formula by blending milk with water and adding supplements as needed. Human milk has a vastly different macronutrient composition compared to that of other mammals, in particular cows. While the energy content is about the same, it is much richer in carbs and a lot lower in protein. The…
We use a physiological interpretation of consonance and dissonant musical sound for human listeners and use a dissonance score to rate different possible triads (combinations of three notes in a scale). This is first done on the conventional scale of 12 equidistant tones in an octave, as well as the Bohlen-Pierce scale. In [1]: using Plots gr () Out[1]: Plots.GRBackend() Plomp-Levelt dissonance…
We investigate the tax burden and insurance cost for different scenarios of gross income using a simplified model of the situation in Germany. The goal is to compute the marginal net income for additional gross income. From that, we can also derive the net hourly income for part-time employment. This analysis is done using Julia in a Jupyter notebook. In [1]: # assume a typical monthly income…