Optimal Vehicle Grid Integration