In order to find the equilibrium we numerically minimize the Gibbs free energy of the polymer G pol (eq 2) with respect to its effective volume V pol and the number of cosolute particles N i . Note that the theory can model both UCST and LCST polymers, depending on the input, in particular, T-dependence of the viral coefficients.