Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Gamultiobj output is giving a different cost than when I run the output through again

조회 수: 1 (최근 30일)
Hi, my code is running through fine, and I am getting a pareto front output from the algorithm. The problem is that when I run the output (x) through my cost function it gives a different cost than the gamultiobj algorithm said it was.
For instance when the algorithm is done it give x=2, with cost =[2 3 5],
Then I run cost_function(2) and it gives cost=[1e3, 1e3, 1e3] for example.
My code is more complicated than that, but that is the issue I am getting
Thanks
  댓글 수: 2
Geoff Hayes
Geoff Hayes 2019년 9월 18일
Kurt - you may need to provide more details (and/or code) describing how you are setting up the GA.
Kurt Stewart
Kurt Stewart 2019년 9월 18일
My code is pretty long - and also I can't share much of it for propietary reasons. Wondering if anyone had this type of issue. I am using a try-catch in my cost function could this be causing problems?

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by