Passing extra outputs from cost function
Show older comments
Dear Matlab Community,
I am using a GA to optimise a certain function, but I want to keep saving some additional data.
f=@(x)requestFitting(extractionInit,x); problemMultiga.fitnessfcn=f;
with
[f,extractionFit] = requestFitting(extractionInit,x)
The problem is, that through the function handle, information on the output of the cost function:extractionFit is lost.
Please help me, how can I save additional outputs of the cost function?
Thanks a lot!
[cost,]
Accepted Answer
More Answers (0)
Categories
Find more on Surrogate Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!