add setObjective method for Variable (close #223).