Construction of the equilibrium diagram for an alloy