Simplify `energy` in include/qpbo_alpha_expand.h