I am a matlab beginner... I hope this question is not too dumb. I would like to solve a constrained maximization problem. I am using the fmincon function on Matlab. I have the following problem:
fmincon does not move away from initial condition. every iteration of the optimization process gives me the same value for the function and the parameters. Any suggestion? Is there anything I should be thinking of except an error in my code?
% MAIN PROGRAM
% % LOAD DATA load('datapro.mat'); data=[stat2 stat23 stat24 stat3 stat32 stat34 stat4 stat42 stat43 id co age nam sex marr kid urb locus ld35 ldsq35];