In this paper, a class of optimization problems coupled with differential equations in finite dimensional spaces are introduced and studied. An existence theorem of a Carathéodory weak solution of the differential optimization problem is established. Furthermore, when both the mapping and the constraint set in the optimization problem are perturbed by two different parameters, the stability analysis of the differential optimization problem is considered. Finally, an algorithm for solving the differential optimization problem is established. 2010 Mathematics Subject Classification. 49J40.