free-energy Simulation code of my Master Thesis: Free Energy for a Class of Combinatorial Optimization Problems and its Asymptotics