Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
Maximise subject to , , , and . The corners are , , , and . Work out at each corner. Then find at the point , which lies on the edge between two corners.
If the rules clash, there is no feasible solution. If the lines are parallel to an edge, both corners of that edge, and every point between them, give the optimal value. linprog minimises, so negate to maximise and turn rules round by multiplying by .
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The values. At , . At , . At , . At , . At , .
Step 2. Compare. The maximum is , and it occurs at two corners, and .
Step 3. The edge. The point has , so it is on the edge between those corners. There .
Answer: the maximum is at corners, and at too. Every point of the edge is optimal, since on it.
Log in to join the discussion.
Loading…