How to solve an optimization problem with an objective function which is not directly a function of decision variables?
Afficher commentaires plus anciens
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 commentaires
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
le 18 Mar 2014
Modifié(e) : saman Tayari
le 18 Mar 2014
Bahar Bahari
le 15 Déc 2019
Modifié(e) : Walter Roberson
le 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
le 7 Oct 2020
Hey,
did you found a solution to this prob?
Regards.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!