Solar system optimization