Final answer:
A linear programming problem in R has been solved to identify the optimal production levels of products P and Q, with the maximum profit calculated at £1266.67. The sensitivity analysis provides shadow prices for material and labor constraints, indicating their value to the profit maximization.
Step-by-step explanation:
The R programming language has been utilized to solve a linear programming problem to determine the production levels of two products, P and Q, to maximize profits given certain constraints on materials and labor. The optimal solution indicates producing approximately 1.33 units of product P and 3.33 units of product Q, resulting in a maximum profit of £1266.67.
The accompanying sensitivity analysis, represented by 'duals.from' and 'duals.to', gives the ranges for the shadow prices of the resources. These ranges indicate how much the profit contribution of each resource would change if the availability of the material or labor varied within certain limits. The results suggest that the constraint on material has a shadow price of £4 per kilogram, while the constraint on labor has a shadow price of £3 per hour, within the specified ranges.