Population of the world is growing with increasing rate and it seems that existing fossil fuel energy sources will not be able to meet energy demand in the near future. Energy is not only crucial for civil sector but also it is one of the most important assets in defense sector. Energy for military operations is mostly provided from fossil fuel as it is the case in other sectors; however, fossil fuels have hazardous effects to the environment and cause global environment concerns. These drawbacks of fossil fuels are also valid for battlefield. Furthermore, transportation of fossil fuels causes extra safety and logistics problems in military case. In this study, we developed a hybrid green energy solution with wind, solar, and batteries together to minimize or eliminate the fossil fuel demand for the battlefield. Results of our algorithm are superior to the already used diesel generator solution from the point of view of cost and various other aspects. The novelty of our study stems from applying optimization of hybrid green energy solution to military case with battlefield constraints.