- an axis-aligned square (angle is 0°),
- a diamond shape, which is a square rotated by 45°.
- The angle is given. In modeling terms, the angle is exogenous.
- Let the model find the best angle. I.e., the angle is endogenous.
I am a full-time consultant and provide services related to the design, implementation and deployment of mathematical programming, optimization and data-science applications. I also teach courses and workshops. Usually I cannot blog about projects I am doing, but there are many technical notes I'd like to share. Not in the least so I have an easy way to search and find them again myself. You can reach me at erwin@amsterdamoptimization.com.
---- 30 PARAMETER circles coordinates of center and radius x y r circle1 4.294 21.082 1.663 circle2 13.759 7.528 4.014 circle3 7.305 5.601 1.961 circle4 8.746 21.407 6.235 circle5 1.678 12.505 2.591 circle6 24.953 14.468 2.715 circle7 24.778 19.056 4.564 circle8 3.267 15.993 5.336 circle9 3.988 6.252 4.769 circle10 16.723 10.884 3.783 circle11 8.993 8.786 3.480 circle12 3.287 3.753 1.706 circle13 14.728 20.772 2.885 circle14 5.770 16.643 1.279 circle15 19.396 7.591 3.031
In this puzzle [1,2], we need to determine what the 3-digit passcode is, using a few hints. Each digit is an integer between 0 and 9. The hints are:
Let's see if we can shoehorn this into a MIP model.
From [1]:
The hour, minute and second hands of this clock are all the same length and move smoothly in a circle. The dial contains hour and minute markers, but the numbers are missing. Therefore, it’s impossible to tell which one of the 12 hour markers belongs to the 12. The two hands on the left are positioned exactly on hour markers, and the hand on the right is positioned between a minute and an hour marker. What time does the clock show?
It is possible to solve this without really any math, but, of course, here I try to model this as a mathematical programming model.