How to solve an optimization problem with an objective function which is not directly a function of decision variables?
이전 댓글 표시
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
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
2014년 3월 18일
편집: saman Tayari
2014년 3월 18일
Bahar Bahari
2019년 12월 15일
편집: Walter Roberson
2020년 10월 7일
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
2020년 10월 7일
Hey,
did you found a solution to this prob?
Regards.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!