variable declaration for optimization
Ältere Kommentare anzeigen
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 Kommentare
Walter Roberson
am 31 Okt. 2020
Are you doing Problem Based Optimization?
Soumili Sen
am 31 Okt. 2020
Walter Roberson
am 31 Okt. 2020
You do not define variables for solver based optimization: you define a function that accepts a vector of values.
Soumili Sen
am 12 Nov. 2020
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!