Non-Linear Programming: A Multiple Data Set Approach
Introduction We have all been there. You are at the end of the school semester, and the only thing left to do is take that dreaded final exam. Like me, you would calculate the minimum exam score needed to receive a particular grade. For example, you might be able to score a 70% on your History exam and still get a B in the class. This is valuable information since you might decide to spend more time studying for other exams if you think a 70% is easily achievable. In this article, we will solve this very straightforward optimization problem programmatically using R’s ROI package . In the first example, we will find the minimum grade needed on the final exam to receive a B in our History class . In the second example, we will find the minimum final exam grade needed to receive a B (80%) for all four classes: History, Science, Math, & English . This article aims to show you how to solve similarly structured optimization problems with various data sets all in one function. Linear v N...