11. Linear programming
At the seminar, we showed how to use linear programming to approximate the solution of some computationally hard problem. In the homework, we will connect linear programming with another topic we have covered during the semester, namely geometry. The problem statement is as follows.
Given a convex polygon with sides such that none of its sides is vertical. Let -th side of the polygon lie on the line given by the equation , where . Find a circle with centre and radius such that it is entirely contained in and its radius is maximal.

Your solution must contain the deduction, justification and general formulation of a linear programme solving the given problem. Next, prepare some example of such a polygon with at least sides and formulate this problem for the solver used throughout the lecture. Let the solution code be part of your submission.
Instructions
- Read the task and solve it by yourself. In case of plagiarism, your homework will not be considered solved.
- Then, send a scanned and hand-written solution as a single file using MS Teams.
- The deadline for submission is May 15, 2025, 23:59:59. The deadline is strict.