energetic.min function

Function that calculate min value