[問題] 經濟兩廠問題求實數解已回收
我是Matlab學習的新手
爬文後來是有很多問題不懂
syms theta z1 z2 K pii pie; %z1:低質廠 z2:高質廠 K:成本 pii、pie:兩廠利潤
p1=z1*theta-z1;
p2=(z2*theta-z1)/2;
q1=(z2*(2-theta)-z1)/(2*(z2-z1));
q2=(z2*theta-z1)/(2*(z2-z1));
R1=simplify(p1*q1);
R2=simplify(p2*q2);
for theta=1:0.01:1.5 %1<theta<1.5
for K=1:0.01:1000 %希望在theta和K變動的組合中求到實數解
但是我不知道怎麼讓他顯示
%計算開始
pie=R1-K*(z2-z1)^2;
B=diff(pie,z1);
z1=solve(B,z1);
%innovator choose quality
piI=R2-K;
pie=subs(pie,z1);
pii=subs(pii,z1);
D=diff(piI,z2);
z2=solve(D,z2); →這邊我用maple計算出來是十分複雜的數 但Matlab則一直顯示錯誤
end;
end;
拜託大家幫幫忙
很急著要用
先謝謝大家^^~
--
How do you capture the wind on the water?
How do you count all the stars in the sky?
How can you measure the love of a mother,
or how can you write down a baby's first cry?
Shepherds and wise men will kneel on adore him,
Seraphim round him their vigil will keep;
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.111.209.104
推
03/31 21:23, , 1F
03/31 21:23, 1F
MATLAB 近期熱門文章
PTT數位生活區 即時熱門文章
14
24