why fmincon optimizer does not optimize my last variable ?

1 view (last 30 days)
Hello dear friends,
I am trying to do constraint optimization using 'fmincon' function from optimization toolbox on a cost function with 8 variables. Althought the function is being minimized but it seems that the eighth variable is not being changed during the optimization process and the initial value for this variable is given in the result vector. let me mention that changing the initial value of this variable does not affect the resulted optimum vector.
I am really confused with this & I am so grateful for all your helps.

Accepted Answer

Anton Semechko
Anton Semechko on 9 Jun 2012
it seems that your cost function is independent of that last variable

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox 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!