|Power versus voltage curve of a uniformly shaded photovoltaic (PV) array has only one maximum power point (MPP). However, when the array is partially shaded, there may be several local MPPs and there exists only one global MPP. The commonly employed perturb and observe (P&O) algorithm works well in detecting the MPP of a PV array when the array is uniformly shaded. However, when the array is partially shaded, the operating point based on P&O method may converge to a local MPP of the array rather than the global one resulting in its under-utilization. In this paper, continuous genetic algorithm (CGA) and hybrid particle swarm optimization (HPSO) algorithm are adopted in detecting the global MPP of a partially shaded PV array. It is observed that the performance of the HPSO is better than either P&O method or the CGA in finding the global maxima of a partially shaded PV array.