Optimal Components Capacity Based Multi-Objective Optimization and Optimal Scheduling based MPC-Optimization Algorithm in Smart Apartment Buildings