The deformed Hermitian—Yang—Mills equation, the Positivstellensatz, and the Solvability