add MIP energy calculation
merging with develop