check power constraint function