How use Convex Otpimization for energy processor scheduling