Message Boards Message Boards

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

[?] Get the Maximum of a Minimum with Abs?

Posted 6 years ago

I am very beginner in Mathematica. I am trying to calculate the following

Maximize[{Minimize[{Abs[u - v], 3 <= u <= 5}, u], 7/2 <= v <= 6}, v]

but Mathematica does not give me any useful result. Would you please tell me what is wrong?

POSTED BY: Moh Rah
2 Replies

It seems that Minimize does not work well with parameters and with Abs. Here is a workaroud:

Maximize[{MinValue[{Sqrt[(u - v)^2], 3 <= u <= 5}, u], 7/2 <= v <= 6},
  v]

The following result seems wrong:

MinValue[{RealAbs[u - v], 3 <= u <= 5}, u, Reals] // PiecewiseExpand

Piecewise[{{3 - v, u - v >= 0}}, -5 + v]
POSTED BY: Gianluca Gorni
Posted 6 years ago

Thank you:)

POSTED BY: Moh Rah
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