Derivative-free tree optimization for complex systems