【发布时间】:2016-03-19 11:23:35
【问题描述】:
我正在尝试使用 Maple 计算具有两个 ODE 的系统解的最大值。我首先解决了系统本身:
> with(DEtools):with(plots):
> a1:=0.00875;a2:=0.075;b1:=7.5;b2:=2.5;d1:=0.0001;d2:=0.0001;g:=4*10^(-8);K1:=5000;K2:=2500;n:=2;m:=2;
> dsol:= dsolve({
diff( x(t), t ) = a1+b1*x(t)^n/(K1^n+x(t)^n)-g*x(t)*y(t)-d1*x(t),
diff( y(t), t ) = a2+b2*x(t)^m/(K2^m+x(t)^m)-d2*y(t),
x(0) = 1000, y(0) = 1000}, numeric, output = listprocedure);
> xt:= eval( x(t), dsol );
yt:= eval( y(t), dsol );
> X:=plot(xt(t),t=0..50000,color=blue,legend="x(t)"):
Y:=plot(yt(t),t=0..50000,color=green,legend="y(t)"):
> display([X,Y]);
我在 xt 和 yt 上得到了系统的解,但它们是数值解。所以Maple的maximize()函数不起作用:
> maximize(xt);
> maximize(xt(t),t=0..20000);
是否可以用 Maple 计算数值函数的最大值?
【问题讨论】: