SMS: The Use of the Newton-Raphson Method for Optimization of a Solar Energy System