Constrained Gibbs energy minimisation