# Tag Info

## Hot answers tagged maximum

Accepted

### How to draw a number of circles inscribed in a square so that the sum of the radii of the circle is greatest?

We only test n=5,n=6. We need three varaibles {x[i],y[i],r[i]} to determint a circle. Set ...
• 78.2k

### Finding the smallest function and the domain on which it is smallest

PiecewiseExpand[Min[{x, x^2, 4 - x}]] (* 4-x if x>=2 x if 1<=x<2 || x<=0 x^2 otherwise *)
• 49.1k
Accepted

### Is it possible to ask Mathematica to give the maximum value of a function over a specific domain?

NMaximize[{f[n], 1 <= n <= 10^6, n ∈ Integers}, n] (* Out: {63.041, {n -> 2}} *) You can then get the corresponding symbolic function value using your ...
• 67.5k
Accepted

### MaximalBy[#, "votes"] & not equal to MaximalBy["votes"]?

Generally, fun in MaximalBy[fun] or MaximalBy[list, fun] must be a function. But <...
• 236k

### How can I mark the maximum value in a plot?

f[x_] := im[0.1 10, 1 10, 1000, 0.1 10, 0.000001 10, x, 0.1 10]; 1. An alternative way to use MeshFunctions: ...
• 399k

### Find the max value of $f(x,y)= 9\ln(x^2+2y^2+1)-x^2-y^2$

If I understand correctly, you want to maximize the following expression: obj = 9 Log[x^2 + 2y^2 + 1] - x^2 - y^2; subject to the constraint that ...
• 131k

### Finding maximum value of a discrete function

f[N2_, N3_] := 20*Log[20] - N2*Log[N2] - N3*Log[N3] - (20 - N2 - N3)*Log[20 - N2 - N3]; For the continuous function ...
• 161k
Accepted

Writing: ...
• 4,452

### How can I get exact maximal value of this expression?

I don't know why Maximize is unable to find the maximum. Instead of using Maximize, you could try using Lagrange multipliers. To ...
• 131k

### How can I mark the maximum value in a plot?

You may e.g. use "NMaximize" and "Epilog" like: ...
• 53.9k

### Find the minimum & maximum and plot it with the mean data

Transpose all of the data lists ...
• 161k
Accepted

...
• 78.2k

### Finding maximum value of a discrete function

Just a brute force approach: ...
• 62.9k

### List of critical points

I would use MaxValue in combination with Solve: ...
• 131k

### Find the max value of $f(x,y)= 9\ln(x^2+2y^2+1)-x^2-y^2$

As mentioned by kirma in a comment to Carl Woll's answer, the maximum depends on whether you are defining the function as being on a Circle or on a ...
• 161k

### Optimising the Selection of MaxValue in Association

Maybe you can use Reduce instead of MaxValue. For instance, the "vanilla:veal" rational function is: ...
• 131k
Accepted

### Finding the smallest function and the domain on which it is smallest

There is a very recent addition to the Wolfram Function Repository that can be utilized here. ...

### Maximization of a concave function with contraints in the arguments

If I correctly understand the question, Maximize does the job in 13.1 on Windows 10: ...
• 27.4k

### Polynomial approximation of max function

Limit[x LogisticSigmoid[k x], k -> Infinity] gives ConditionalExpression[x, x > 0] so give a large ...
• 25.6k

...
• 56.1k

### NMaxValue - function is not a real number

If you plot your function F[z] Plot[F[z], {z, -0.7, 1}] you can see that the max is somewhere near -0.25. Since your function becomes complex valued at around -0.6,...
• 69.5k

### Is it possible to ask Mathematica to obtain the function describing the upper and lower boundaries of a combinations of functions?

Something like: ...
• 53.9k
Accepted

### Maximization of a function over a discrete set

This? Last[SortBy[Map[{f@@#, #}&, Tuples[{setx, sety, setz}]], First]] The Tuples will give you all combinations, the ...
• 12.3k
Accepted

Try: ...
• 741
Accepted

### Find maximum of the output from reduce

Let the large result of Reduce be rs. Then the maximum of each quantity is determined by ...
• 61.8k
Accepted

### NMaximize is not converging to a solution

Rationalize the constraint: ...
• 161k

### Plot maximum value of a function of three variables

I might be misinterpreting the question, but it seems like the OP is asking for a 2-D representation (t vs. the maximum of f over the whole domain). ...
• 9,001

### Optimising the Selection of MaxValue in Association

The following is not the exact filter that you want, but a simple prefilter that apparently is quite good at filtering the given example ;) The point is that this check is much cheaper than computing ...

Try this: ...
• 39.8k