How can i make optimization by using genetic algorithm to minimize error between desired and simulated force?
Show older comments
I want to make an optimization using genetic algorithm to minimize the simulated and desired force? The simulated force is obtained from Csv file
1 Comment
Torsten
on 13 Dec 2024
General answer for a general question: Use "ga".
Answers (1)
Star Strider
on 13 Dec 2024
0 votes
Your fitness function should be something like this:
fitness = @(b) norm(dependent_variable - model_function(b,independent_variable));
Your .csv file should provide the independent variable and one or more dependent variables.
.
Categories
Find more on Genetic Algorithm 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!