This paper deals with the problem regarding the optimal operation of photovoltaic (PV) generation sources in AC distribution networks with a single-phase structure, taking into consid eration different objective functions. The problem is formulated as a multi-period optimal power flow applied to AC distribution grids, which generates a nonlinear programming (NLP) model with a non-convex structure. Three different objective functions are considered in the optimization model, each optimized using a single-objective function approach. These objective functions are (i) an operating costs function composed of the energy purchasing costs at the substation bus, added with the PV maintenance costs; (ii) the costs of energy losses; and (iii) the total CO2 emissions at the substation bus. All these functions are minimized while considering a frame of operation of 24 h, i.e., in a day-ahead operation environment. To solve the NLP model representing the studied problem, the General Algebraic Modeling System (GAMS) and its SNOPT solver are used. Two different test feeders are used for all the numerical validations, one of them adapted to the urban operation characteristics in the Metropolitan Area of Medellín, which is composed of 33 nodes, and the other one adapted to isolated rural operating conditions, which has 27 nodes and is located in the department of Chocó, Colombia (municipality of Capurganá). Numerical comparisons with multiple combinatorial optimization methods (particle swarm optimization, the continuous genetic algorithm, the Vortex Search algorithm, and the Ant Lion Optimizer) demonstrate the effectiveness of the GAMS software to reach the optimal day-ahead dispatch of all the PV sources in both distribution grids.