Written global partition function
Written global partition function