I used for a non-linear optimization problem the objective function O.F.=Σ(xs-xo)^2, where xs is the simulated value and xo is the observed. The algorithm runs adequately but I would like to know if this objective function is limited only for linear problems or whether it can also be used for non-linear problems.