Message Boards Message Boards

3
|
5521 Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Using Reduce inside Minimize

Minimize[{x^2 - y^2,
  Cos[x - y] >= 1/2, -5 <= x <= 5, -5 <= y <= 5}, {x, y}] (* returns unevaluated *)
Minimize[{x^2 - y^2,
  Reduce[{Cos[x - y] >= 1/2, -5 <= x <= 5, -5 <= y <= 5}, {x,
    y}]}, {x, y}] (* returns *)
{1/9 (-150 \[Pi] + 25 \[Pi]^2), {x -> 5 - (5 \[Pi])/3, y -> 5}}
POSTED BY: Frank Kampas
4 Replies
Frank, you may want to take a look at the following discussion:

An Example of the symbolic Nature in Mathematica's Numeric Process

which was inspired by the very code you posted here.
POSTED BY: EDITORIAL BOARD
Neat observation, Frank, +1 ;-)
POSTED BY: Sam Carrettie
No specific question, I thought people might find this interesting or useful. 
POSTED BY: Frank Kampas
Useful technique. 

Was there an implict question?
POSTED BY: Bruce Miller
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