As part of a weight reduction program a man designs a monthl
As part of a weight reduction program, a man designs a monthly exercise program consisting of bicycling, jogging, and swimming. He would like to exercise at most 4040 hours, devote at most 33 hours to swimming, and jog for no more than the total number of hours bicycling and swimming. The calories burned per hour by bicycling, jogging, and swimming are 200, 473473, and 257257, respectively. How many hours should be allotted to each activity to maximize the number of calories burned? What is the maximum number of calories he will burn?
Solution
Let the number of hours spent in bicycling be x1, in joffing be x2, in swimming be x3.
 Calories burnt in each are 200, 473473 and 257257 respectively
Objective Function: 200x1+473473x2+257257x3
Constraints:
 x1+x2+x3 <=4040
 x3<=33
 x2<=x1+x3
 x1,x2,x3>=0
Putting all these in a solver, we get the following results:
x1=1987 x2=2020 x3=33
 Maximum number of calories burnt = 965302341

