From: Matt J on
"Adrian gavrila" <adig_coool(a)yahoo.com> wrote in message <hsbh98$cnl$1(a)fred.mathworks.com>...

> How to pass this penalty to fminsearch. In my search I have found OPTIMIZE (fmincon with a fminsearchbnd heart) still a bit of dilemma how to apply to this these penalties.
>
> Am I in the right direction?
======

Again, the penalty just leads to a new objective function. Pass the new objective function to fminsearch, instead of the old one.