add energy constraint on devices when choose max independent set