The optimal power flow problem is a short-term optimization problem that seeks to minimize the operational cost of the power system while meeting the operational constraints in real time. Therefore, it is not designed to consider the long-term costs associated with maintenance and capital expenditures.
Answer lies in formulation of your problem, if you are placing the limits for 24 hours (short term) then both maintenance and capital cost become less in comparison to operational cost. Problem of scheduling is complex, lots of data is involved, specially when its OPF. If renewables are also considered then problem becomes stochastic again with additional methods (Monte Carlo etc.). I have never read a research paper considering all the possibilities of constraints. Better is to go ahead with: (Thermal Generators+Renewables+ Storage) in security constraint environment.