Message Boards Message Boards

GROUPS:

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

Posted 10 months ago
701 Views
|
2 Replies
|
1 Total Likes
|

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?

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 10 months ago

Thank you:)

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