Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question 10: Jack is looking to replace the recently sunk Black Pearl. In an unc

ID: 3109654 • Letter: Q

Question

Question 10: Jack is looking to replace the recently sunk Black Pearl. In an uncharacteristically well-behaved moment, he considers building a new ship with his pirate's hoard of $35,000. But what design is best? The effectiveness of a ship depends on the number of sails, s, the number of guns it carries, g, and the number of barrels that will fit in its hold, h, according to the equation Effectiveness 0.5 0.4 0.6 If a sail costs $700, a gun costs $800, and the hold costs $500 per barrel, how many sails, guns and barrels should Jack's ship carry?

Explanation / Answer

The following MATLAB code displays as the output, the optimum values of s, g and h.

fun = @(x)(-((x(1)^0.5)*(x(2)^0.5)*(x(3)^0.6)));

A = [700, 800, 500];
b = 35000;
x0 = [1 1 1];
fmincon(fun,x0,A,b)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote