Message Boards Message Boards

0
|
2755 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How Does FindMinimum Handle "Or" Constraints ?

How Does FindMinimum Handle "Or" Constraints?

In[37]:= FindMinimum[{x + y, 
      Or[(x - 2)^2 + y^2 == 1, (x + 2)^2 + (y + 1)^2 == 1]}, {x, y}, 
     Method -> "IPOPT"]

    Out[37]= {-4.41421, {x -> -2.70711, y -> -1.70711}}
POSTED BY: Frank Kampas
2 Replies

Presumably FindMinimum can call IPOPT more than once, each time with a problem corresponding to one of the Or'd constraints.

POSTED BY: Ilian Gachevski

I frequently use IPOPTLink but it won't handle Or constraints, so I'm puzzled that FindMinimum can, with Method -> "IPOPT:

POSTED BY: Frank Kampas
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract