MATLAB: Optimization with interdependent variables

optimization

I am using fgoalattain for a multi-objective optimization problem. In this problem, I have some parameter (x) that is dependent on two other variables (y,z). And one of those two variables (y) is dependent on the other (z). So, basically I need to do optimization on two levels for these two variables. How can I do that?
Thanks

Best Answer

Optimize with respect to z.
Anything that depend on z, including y and x, such as objectve, constraints, upper bounds..., can be written as function of z.