variable declaration for optimization
이전 댓글 표시
hello,
I am writing a code where I need to declare two variables which will be used for optimization in further, i.e,
a,b -----> variable(a=complex, b=real)
x=h1*a^2+h2*b^2+h3;------>h1,h2,h3 are constants
x=objective of optimization problem
what will be the code to declare 'a' and 'b';?
댓글 수: 4
Walter Roberson
2020년 10월 31일
Are you doing Problem Based Optimization?
Soumili Sen
2020년 10월 31일
Walter Roberson
2020년 10월 31일
You do not define variables for solver based optimization: you define a function that accepts a vector of values.
Soumili Sen
2020년 11월 12일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!