How do I change my fminsearch to fmincon with some restrictions on the parameters?

1 view (last 30 days)
Hi,
I am running an fminsearch function but some parameter estimates are coming out as greater than one. As the parameters are for an autoregressive function they should be between zero and one. How can I change my fminsearch to the right fmincon? I don't know where exactly to put the restrictions and how to define them. My fminsearch is:
[results,fval] = fminsearch('kalmanf',param,['MaxFunEvals',100000],data,xt_init,sigma_FC, sigma_FS);
Where the first 6 rows of the vector "param" should be restricted to be between zero and one. data,xt_init,sigma_FC, sigma_FS are the inputs of the function.
thank you!

Answers (0)

Categories

Find more on Systems of Nonlinear Equations in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!