changed the retrun type of FormulaElement::setOptimizationResult() to void.

The reason is to be like other setters in this project.