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 个评论

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.
I probably wasn't very clear with my explanation, but that optimization example you shared still tries to minimize the function 8x1 + x2 or (-3x1 - 2x2 -x3), whereas there isn't a specific function that I can use to model the results I will see from my tests (at least without doing some CFD). So like you said, that's not really what I need.
The way you described my problem in the second paragraph does sound a lot like what I need, thanks for helping to clarify it. I'm trying to minimize the results from the tests, and I was hoping there was a way for an optimizer to handle the selection, mutation, and fitness decisions since I'm not sure exactly how to do that myself.

请先登录,再进行评论。

回答(1 个)

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.
You may find useful ideas in the area of response surface methodology.

2 个评论

Thanks for your suggestion. If I understand you correctly, I could run the test several times using random parameters, take the results of those tests, fit a curve to it, then minimize that function?
If that's what you mean my concern is, like you stated, extrapolating over where I have no data. In the problem I'm solving there are 7 variables with 180 integer DOFs each, and I wanted to do a GA originally so that I wouldn't have to spend too much time running tests for each of those parameters.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by