Chapter 3 Graphical Solution Method and Basic Optimization Concepts
MATLAB Code: 3.49
[A,s]=meshgrid(0:1:1000, 0:10:5000);
%Enter functions for the minimization problem
axis auto %Minimum and maximum values for axes are determined automatically
xlabel(‘D‘),ylabel(‘H’) %Specifies labels for x– and y-axes
hold on %retains the current plot and axes properties for all subsequent plots
cv1=[0 0];
const1=contour(A,s,g1,cv1,’k’,’LineWidth’,3);
const4=contour(A,s,g4,cv1,’k’,’Linewidth’,4);
const4=contour(A,s,g4,cv11,’c’);
text(25,250,’g4′)
const5=contour(A,s,g5,cv1,’k’,’Linewidth’,3);
const5=contour(A,s,g5,cv11,’c’);