In this study, a new switched-capacitor-based seven-level inverter topology with a photovoltaic system is presented. The proposed topology requires a smaller number of devices and has the ability to self-balance the voltage across the capacitor. The proposed topology configuration is simple and has the ability to extend to higher levels of voltage. This multilevel inverter topology is suitable for low- and medium-voltage applications with photovoltaic (PV) system integration. To improve the PV system efficiency as an input of a DC–DC boost converter, a Fuzzy logic-based maximum power point controller technique is used. A PV system with a DC–DC boost converter integrates with the proposed seven-level inverter topology. The anti-predatory particle swarm optimization (APSO) technique is used to solve the non-linear transduction equations of the seven-level PV switched-capacitor-based multilevel inverter (7L−PV−SCMLI) topology. The proposed APSO is described to minimize the harmonics in the multilevel inverter (MLIs), which is a complex optimization problem involving a non-linear transcendental equation. Furthermore, APSO can be applied in order to solve non-linear transcendental equations for all symmetrical and asymmetrical MLIs that have equal and non-equal DC sources. The APSO-based selected harmonic elimination (SHE) technique obtained the best switching angle value, and the optimized obtained switching angles reduced the total harmonic distortion (THD) of 7L−PV−SCMLI.