Achieving optimal admission control with dynamic scheduling in energy constrained network systems