DateTimeParseException: Text '17/12/2016 01:41:43' could not be parsed: Unable to obtain LocalDateTime from TemporalAccessor: DateTimeBuilder[fields={MilliOfSecond=0, MinuteOfHour=41, MicroOfSecond=0, NanoOfSecond=0, HourOfAmPm=1, SecondOfMinute=43}, ISO, null, 2016-12-17, null], type org.threeten.bp.format.DateTimeBuilder
function [y,Gy]=c6fun3(x)
y=100*(x(2)-x(1)^2)^2+(1-x(1))^2;
Gy=[-400*(x(2)-x(1)^2)*x(1)-2+2*x(1); 200*x(2)-200*x(1)^2];
这也是以下因素,
ff = optimset;
ff.TolX=1e-10;
ff.TolFun=1e-20;
%x = fminunc(f,[0;0],ff)
syms x1 x2;
f=100*(x2-x1^2)^2+(1-x1)^2;
J=jacobian(f,[x1,x2]);
ff.GradObj='on';
x = fminunc(@c6fun3,[0;0],ff)