Closed alexbuyval closed 8 years ago
Hi Alex,
COBYLA as such only supports inequality constraints, C(x) ≥ 0, so you will need to formulate some kind of replacement constraint(s).
Assuming a non-equivalence tolerance of ε you could for example replace C(x) = 0 with
ε - |C(x)| ≥ 0
It should be noted that COBYLA is probably not very efficient with these kinds of constraints, but maybe fmincon has difficulty with equality constraints too, or?
Best regards, Anders @ Cureos
Hi Anders,
Thank you for your quick answer!
I understood this idea.
How should I code these inequality constraints? Are there any examples?
Best Regards, Alex
Please look in the unit tests folders, you will find several usage examples there. For COBYLA, here.
Thank you! I will try.
Hi,
I am looking for C# library to replace 'fmincon' Matlab function in my application. It seems that COBYLA is suitable for me. However, in my 'fmicon' solution I have got equality constraints as set functions like this:
Can I use COBYLA in that case? If so, is there any example how can I code it?
Best Regards, Alex