If you don't have a current version of the toolbox (R2017b or later) then use the solver-based examples linked from each of these problem-based examples.
There is no way to include a constant term in the objective function, but it would be meaningless to do so. Adding a constant term does not change the optimal solution, x.
Best Answer