Thomas Arildsen <tha.es-aau-dk@spamgourmet.com> wrote in message <49c0e5a9$0$90271$14726298@news.sunsite.dk>...
> I am running an optimisation using fmincon. I have constructed a
> nonlinear constraint function, let us call it myconstr(), that returns an
> inequality constraint output and an empty equality constraint output.
> When I run the optimization, out = fmincon(..., I check afterwards whether
> out)>0 which is actually the case sometimes. As I understand it, fmincon
> is supposed to obey the constraint myconstr(X)<=0, so why does this
> happen? I have tried using an options struct with TolCon = 0, but this
> does not seem to have any effect.
>
> By the way, what is the options field 'ActiveConstrTol' used for? I
> cannot find it documented anywhere.
>
> Thomas Arildsen
> --
> All email to sender address is lost.
> My real adress is at es dot aau dot dk for user tha.
For those who might run into a similar issue, I solved it by increasing 'MaxIter' in optimoptions.
> I am running an optimisation using fmincon. I have constructed a
> nonlinear constraint function, let us call it myconstr(), that returns an
> inequality constraint output and an empty equality constraint output.
> When I run the optimization, out = fmincon(..., I check afterwards whether
> out)>0 which is actually the case sometimes. As I understand it, fmincon
> is supposed to obey the constraint myconstr(X)<=0, so why does this
> happen? I have tried using an options struct with TolCon = 0, but this
> does not seem to have any effect.
>
> By the way, what is the options field 'ActiveConstrTol' used for? I
> cannot find it documented anywhere.
>
> Thomas Arildsen
> --
> All email to sender address is lost.
> My real adress is at es dot aau dot dk for user tha.
For those who might run into a similar issue, I solved it by increasing 'MaxIter' in optimoptions.