How to solve an optimization problem with an objective function which is not directly a function of decision variables?
Show older comments
My objective function and constraints include some expressions each of which are defined separately. Therefore the OF and constraints does not directly include variables. I know that the optimization functions in Matlab require the variables to present in the constraints or OFs to be able to solve the problem. I cannot bring variables to my functions because I do max operation and some different for loops for their calculations separately.
4 Comments
Note, max() operations likely render your objective function/constraints non-differentiable. There are no constrained solvers in the Optimization Toolbox that can handle non-differentiable problems. Only the Global Optimization Toolbox solvers would be appropriate for them, or maybe FMINSEARCHCON
saman Tayari
on 18 Mar 2014
Edited: saman Tayari
on 18 Mar 2014
Bahar Bahari
on 15 Dec 2019
Edited: Walter Roberson
on 7 Oct 2020
Hello
I have the same question in using GA but I found the answer a bit complicated. Could you say the soloution for a simple question as follows:
a=10;
b=5;
x=2a+b
y=b/3
z=x+y
I want to minimize "z" while "a" & "b" are the variables.
Thank you very much.
Jacob Mathew
on 7 Oct 2020
Hey,
did you found a solution to this prob?
Regards.
Accepted Answer
More Answers (0)
Categories
Find more on Solver Outputs and Iterative Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!