Code for a study of exact computation of the chemical potential in transcription factor binding models