Variational approach for studying the resistance of simple disordered metals