Consider the problem of minimizing a lower semicontinuous, semialgebraic function \(f :\mathbb {R}^n \rightarrow \mathbb {R} \cup \{\infty \}\) over \(\mathbb {R}^n\) . In this paper, we first show that the set of tangency values (at infinity) of f is a finite set. Then we present necessary and sufficient conditions for the existence of optimal solutions of the problem as well as the boundedness from below and coercivity of the objective function. Finally, we obtain a full characterization of the infimum value at infinity of f and show some relationships between Łojasiewicz exponents at infinity of f for this value.