Question: how can i solve maximize of numerical dsolve

restart;
res := dsolve({25*(diff(y(t), t, t))+4*(diff(y(t), t))-3*y(t) = cos(3*t), y(0) = 0, (D(y))(0) = 1}, numeric, method = rkf45);
with(Optimization);
Maximize(res, t = 0 .. 4);
 

Please Wait...