It is demonstrated that topological constraints can be used to control the sign of the curvature of phase boundaries and thus to preserve their shapes in the course of the thermodynamic optimization. In such a way, the unwanted or suspicious inflection points on the phase boundaries may be avoided.