Microgrids allow energy exchange among multiple interconnected microgrids for greater energy efficiency and collective economic interest. However, in some cases, the benefit of some microgrids within the network may not be uncertain. In view of the increasing development of electric vehicles (EVs), a multiobjective model is proposed to improve the performance of microgrids by integrating electric vehicles-to-grid (V2G) and vehicles-to-building (V2B) based on global and individual benefit balance. Two reference models are built to verify the validity of the proposed method, and models are formulated as mixed integer linear programming formats solved by the weighting method. A set of parameters of microgrids are adopted to model the driver behaviors (e.g., available hours of EV), energy transactions (e.g., electricity), performance factor (e.g., emission factor), distributed energy (e.g., solar panel), and energy load of five commercial buildings (e.g., hotel) located in Shanghai. Simulation results demonstrate the effectiveness of the operation decision models in the energy management of microgrids under neutral, proeconomic, proenvironmental, and proenergy weighting scenarios. The case study results specify that the proposed method can achieve operational cost, CO2 emission, and primary energy consumption reductions for each microgrid, with total benefits declining slightly.