This thesis is a part of the solar boat project which made a solar driven boat for participation in Frisian Solar Challenge 2008 in Holland. The boat is built with a Photovoltaic system with energy storage. The aim of this thesis is to optimize running speed for reaching the shortest time to the final. The method to implement the aim is to develop a control program which includes two step functions. One is a prediction function and the other is a real-time control function using genetic algorithm. To implement the program, a mathematic model has been built. Besides, the approaches to calculate the boundaries related to weather conditions have been explained.The control program has been simulated and tested. Both functions in the control program worked. The results proved that genetic algorithm has improved the results but it is not suitable in every situation.