How to add (soft?) constraints to the model?

Could you explain what you mean by a solver for algebraic equation & how would it help?