Group Abstract Group Abstract

Message Boards Message Boards

Using Reduce inside Minimize

GROUPS:
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
Answer
11 months ago
Useful technique. 

Was there an implict question?
POSTED BY: Bruce Miller
Answer
11 months ago
No specific question, I thought people might find this interesting or useful. 
POSTED BY: Frank Kampas
Answer
11 months ago
Neat observation, Frank, +1 ;-)
POSTED BY: Sam Carrettie
Answer
11 months ago
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: Moderation Team
Answer
11 months ago