This paper proposes a new Maximum Power Point Tracking (MPPT) technique for photovoltaic (PV) systems especially under Partial Shading (PS). This technique is based on Generalized Pattern Search (GPS) optimization algorithm. The proposed technique adopts the GPS algorithm owing to the reason that its major features like simple implementation, derivative free nature, fast convergence and high accuracy are ideally suited to deal with PS conditions. Furthermore, these features of GPS can well resolve the limitations and drawbacks of previous MPPT techniques, such as fluctuation, low efficiency, high complexity and slow convergence. For comparison, our proposed MPPT algorithm, the Particle Swarm Optimization (PSO) algorithm and the Perturb and Observe (P&O) algorithm have been implemented in MATLAB/Simulink. The comparison results demonstrate that the proposed MPPT technique can efficiently detect the global maximum (GM) in a fewer number of voltage samples, which is nearly 4 times less than the number of voltage samples required by PSO. Moreover, the steady state efficiency of the proposed MPPT is 99.8%, which is higher than the other MPPT techniques. Therefore, the proposed technique distinguishes itself from other MPPT techniques due to its superior quality in terms of convergence speed, dynamic and steady state efficiencies and low complexity.