want to do optimization with fmincon but without having exact function
Ältere Kommentare anzeigen
Hi,
I want to do an optimization for constrain problem and use fmincon.
The problem is that, I don't have function that be defined by variables like f(x,y)=x^2+y^2
I have FEM model which is contain a file with thousands of line in bdf format, which is as input for MSC.NASTRAN
I cloud read my design variable from that file and store them in parameters, as well as write new value on the specific place. Then I will call MSC.Nastran to do computation and then generate f06 file, which the value of objective and constrains are stored in that and read these value and store them in parameters too.
I want to use fmincon to do optimization for my problem but it gives me error which i think this is due to calculation of gradient of function, because for 10 variables problem it do 11 calculation and then error appear.
Thanks so much in advanced.
4 Kommentare
mohammad haghnejat
am 14 Dez. 2017
Bearbeitet: Matt J
am 14 Dez. 2017
Dorsa Haji Ghaffari
am 16 Okt. 2020
Hi Mohammad,
I'm trying to optimize a system without having a formulated function that can define my system. I'm using fmincon, but cannot get it to work without providing a function. I get my objective function values real time from experiments and I want to minimize the objective function value.
I see that you were doing a similar thing in the past. Is there any documentation on working with fmincon when there's no formulated function?
Thank you so much!
Walter Roberson
am 16 Okt. 2020
Dorsa Haji Ghaffari:
What you have defined so far would be satisfied with an objective function that returned -inf no matter what the input was.
Given a set of times and any associated measurements so far and a list of trial model parameters, then how would you compute the current objective function value?
As time progresses, are you hoping to refine the parameters (the uncertaintly gets lower as you have more data), or are you hoping to update the parameters (the parameters are changing in time) ?
mohammad haghnejat
am 16 Okt. 2020
Akzeptierte Antwort
Weitere Antworten (1)
mohammad haghnejat
am 16 Dez. 2017
0 Stimmen
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!