A study of the linear free energy model for DNA structures using the generalized Hamiltonian formalism