mean square error as genetic algorithm cost fuction
이전 댓글 표시
Hello to everyone,
I'm having problem by using the matlab ga function. In practice I have a SteadyStateThermalResults (basically the temperature associated to each node of a mesh), and I want to use a genetic algorithm to obtain the same thermal profile on the same geometry, by placing a heat source on it. Considering only circular heat sources, the output of the algo should be the position (x,y), the radius and the temperature of the source. I want to use the mean square error as cost function of my algo, and it should take the generated solution, place the heat source on the geometry, compute the thermal profile and make the mse with the original one. How can I specify this kind of cost function the the ga() matlab function?
Thank you in advance,
Antonio.
댓글 수: 2
Sam Chak
2024년 1월 17일
Can you provide the equation for the mean square error?
Maybe
error = sqrt(1/A * integral_(A) (T(SteadyStateThermalResults)-T(SimulationResultsWithHeatsource))^2 dA)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Heat Transfer에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!