How to optimize a parameter as well as independent variable
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a function to minimize. For example, f = a*x^2 + 2*x. Parameter a is also a function of x. For instance, a(x) = x-4. How to optimize x as well as parameter a?
댓글 수: 0
답변 (1개)
Alan Weiss
2016년 5월 4일
I do not understand the problem. It seems to me that you can write your objective function as:
function f = ffun(x)
a = x-4;
f = a*x^2 + 2*x;
But I am sure that you already know this. So what is your real problem?
Alan Weiss
MATLAB mathematical toolbox documentation
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!