Can I use a genetic algorithm optimization without an objective (fitness) function, just a data set?
Show older comments
Basically, I want to start off with a set of random parameters for testing, then run tests using those parameters, and then give the results of those tests back to the GA optimization to use in the next generation. There's not a function I can create to model the results I get from testing, just the data set from the test results. Is is possible to use GA optimization this way? Does anyone know how I could do this?
2 Comments
Walter Roberson
on 2 Jun 2017
There is at least one GA toolbox around written in MATLAB that allows a matrix to be provided instead of a function, in the same manner as https://www.mathworks.com/help/optim/ug/intlinprog.html allows a matrix to be specified.
However, that does not sound like what you need. It is not clear what you do need. It sounds like you just need a routine that iterates through a list of vectors and calls the "run tests" function on each of the vectors, with you handling the selection and mutation and decisions about fitness yourself.
Jacob Butterfield
on 5 Jun 2017
Answers (1)
John D'Errico
on 2 Jun 2017
0 votes
No. A data set is just a set of numbers. There is no "function" that you are providing, so optimization cannot be done on pure data. At best, just choose the max or min value over all data points, and then you are done.
That does not mean there is nothing you can do. You could build some sort of model that approximates the data, fitting it as reasonably as possible. Then optimize the model function, but only over the support of your data. Do NOT extrapolate such a model, or allow it to be extrapolated. Extrapolation is dangerous, and searching for a min or a max in a region where you had no data at all is a foolish thing to do. So you will want to do a constrained optimization.
2 Comments
Jacob Butterfield
on 5 Jun 2017
Edited: Jacob Butterfield
on 5 Jun 2017
Fabrizio Verga
on 13 Feb 2019
Hi Jacob,
did you find a solution?
Categories
Find more on Choose a Solver 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!