> Paul3 wrote:
>> "Perhaps it would tend to work out better in more realistic situations with more data."
No matter how much data you have, the objective function you've presented is discontinuous and piecewise constant. Fortunately the function changes at the data values, so there is an easy direct solution.
... View more