algorithm solar