Minimum cost consensus model with altruistic preference