I am in highschool and have not taken any courses on this. Rather I am working on an outside project. I don't quite understand how Genetic Programming could be used effectively to generate a set of equations to evaluate. My understanding is an operator will be added to a parent equation (the operator being a primitive?) and then that equation will be optimized and if the fit is better than some of the other added operators new generations will use an equation with that operator as the parent equation.
What I find strange is this:
If my equation is f(x) = -sin(x) and I currently have f(x) = x as my parent equation. When I attempt to add sin() to create f(x) = sin(x) the fit would be even worse and that operator would get thrown out even though I need it.
I understand that this is not the best example because it does not have a coefficient to be optimized.
Would someone please explain how genetic programming is used to make an equation set for optimization. You don't have to use my example either