A stand-alone hybrid energy system is needed to mitigate the growing demand for future energy and to reduce emissions generated by conventional fuel sources. This work shows and proposes an optimum hybrid energy system configuration with less environmental pollution for a coastal region of Bangladesh with a load demand of 292.20 kWh/d and a peak load of 41.14 kW. This research presents the cost of energy (COE) and net present cost (NPC) for a PV-wind hybrid system with five alternative fuel generator technologies. For each possible configuration, the effects of three alternative dispatch algorithms, load following (LF), cycle charging (CC), and combined dispatch (CD), are examined. All three algorithms were validated using a genetic algorithm (GA), Cuckoo search algorithm (CUSA), Constrained Particle Swarm Optimization (CPSO), Harmony search algorithm (HSA), and Non-dominated Sorting Genetic Algorithm (NSGA-II). Furthermore, a sensitivity analysis is also conducted by utilizing the gasoline price, discount rate, battery cost, PV cost, and inflation rate. The results show that the PV-wind-natural gas-based system provides the minimum COE (0.196 USD/kWh) and NPC (270,483 USD) when the CD algorithm is followed. For the same optimal hybrid energy system, the COE is 0.201 USD/kWh, 0.0998 USD/kWh, 0.101 USD/kWh, 0.101 USD/kWh, and 0.0987 USD/kWh respectively for GA, CUSA, CPSO, HSA, and NSGA-II. However, COE increases by 8 % (0.212 USD/kWh) and 15 % (0.225 USD/kWh) when the CC and LF algorithms are followed. In addition, a comparison of all configurations reveals that the PV-wind-biomass configuration with the CD algorithm excludes biomass generators to lower the COE, making the system emission-free.