Can I use a genetic algorithm optimization without an objective (fitness) function, just a data set?
显示 更早的评论
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 个评论
Walter Roberson
2017-6-2
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
2017-6-5
回答(1 个)
John D'Errico
2017-6-2
0 个投票
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 个评论
Jacob Butterfield
2017-6-5
编辑:Jacob Butterfield
2017-6-5
Fabrizio Verga
2019-2-13
Hi Jacob,
did you find a solution?
类别
在 帮助中心 和 File Exchange 中查找有关 Choose a Solver 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!