I have the following objective function
t = 0:0.01:1;v = 3.*t;objective =@(t) (1 - b).*( a1.*v + a2.*v.^2); %where a1,a2 given constants
S = sum(objectivet(t));t0 = 1;
But when applying the
[t,fval,exitflag,output] = fmincon(S,t0,A,b,Aeq,beq,ub,lb,constraints)
it gives an error using fmincon.
All values using the fmincon are well defined. How could I correct it?
Best Answer