% Kasus Roti Maros dan Jalang Kote
P = 250; % Keuntungan Jalangkote
Q = 300; % Keuntungan Roti Maros
M = 50; % Sediaan telur [butir]
N = 10; % Sediaan tepung [kg]
C = [-P;-Q];
b = [M;N;0;0];
m1 = 0.4;
m2 = 0.2;
n1 = 0.25;
n2 = 0.15;
A = [m1 m2;n1 n2;-1 0;0 -1];
X = linprog(C,A,b)