This looks very similar to the Linear Programming problem. Usually taught in the Operations Research courses, particularly in business schools, where it is often referred to as "Management Science" and is used to solve complex decision-making problems in areas like finance, logistics, and marketing.
Do you want to use the conventional way to plot the vertical line before the xline() command was introduced?