Questions tagged [maximum]

Questions on finding the largest value of a set, extreme values of an expression, or on Mathematica functionality for maxima testing.

Filter by
Sorted by
Tagged with
20
votes
5answers
2k views

Moving maximum function?

How can I construct a moving maximum function? For example, if I have a list of 12 values: { 5, 6, 9, 3, 2, 6, 7, 8, 1, 1, 4, 7 } and I want to maximize over 3 ...
6
votes
1answer
151 views

MaximalBy[#, “votes”] & not equal to MaximalBy[“votes”]?

I'm looking at the results of the 2015 UK general election ...
5
votes
2answers
330 views

Max of imported numerical data will not work

I loaded a list with 400,000 values from a file. The list was loaded correctly as I can get it's length (by Length[]) and I can also plot it. Why can't I get the Max or Min of this list though? When ...
5
votes
2answers
400 views

Get envelope of a set of functions?

I'm new with mathematica and I'm trying to solve a problem. I have a set of functions in the same variable. Let's say the domain is [0,2]. I would like to get an ordered list of the functions ...
4
votes
3answers
162 views

Optimising the Selection of MaxValue in Association

Suppose I have the following Association: ...
4
votes
2answers
322 views

List of critical points

In TI-Nspire CX CAS, writing: exp▶list(fMax(sin(x),x,0,10),x) I get: {((π)/(2)),((5*π)/(2))} while in Wolfram Mathematica, writing: ...
4
votes
1answer
186 views

How to compare lists in tuples

I have one problem write a function to maximize the positive number of tuples of a given list which satisfy the condition that there exists no number (except zero) two or more times in one tuples. ...
3
votes
2answers
384 views

How can I get exact maximal value of this expression?

I am trying to find the exact maximum value of the expression $$ E= \sqrt{5 a^2+a (4 b-2 c)+2b^2+4 b c+5 c^2}+\sqrt{2a^2+a (2 b+2 c)+2 b^2-2 bc+2 c^2}+\sqrt{26 a^2+a (10c-2 b)+26 b^2+10 b c+2 c^2} ,$$ ...
3
votes
2answers
1k views

Finding maximum value of a discrete function

I have the following function. I want to graph its discrete plot and find the points where it takes on the highest value: ...
3
votes
3answers
225 views

Maximization of a function over a discrete set

I have a function of three variables: $f = f(x, y, z)$. I need to maximize $f$, when $x$, $y$ and $z$ run given sets of values: $x \in (x_1, x_2, x_3)$, $y \in (y_1, y_2, y_3)$ and $z \in (z_1, z_2, ...
3
votes
2answers
159 views

MaximalBy, MinimalBy with Infinity

I don't understand why this doesn't work: In[30]:= MinimalBy[{{1, -Infinity}, {2, 3}}, Last] Out[30]= {{2, 3}} While this works seemingly: ...
3
votes
2answers
211 views

NMaximize is not converging to a solution

I am trying to use NMaximize to find the maximum value of a variable that satisfies the given constraints. Since the constraints aren't straightforward, I am using ...
3
votes
1answer
68 views

Why `NMaximize` function can't use nonnegative integer field as solution condition

...
3
votes
2answers
147 views

Retaining relative sizes of local maxima using MaxDetect[List]

I would like to be able to find the position of the two greatest local maxima in a list. For the example: list={1,2,3,4,2,1,2,6,5,4,3,2,} I would like to return <...
3
votes
1answer
110 views

Recognising degenerate maxima in a matrix

Say I have the following matrix $\left( \begin{array}{cccccc} 1. & 0 & 0 & 0 & 0 & 0 \\ 0 & 0.707107 & 0 & 0 & 0 & 0.707107 \\ 0 & 0.707107 & 0 &...
3
votes
1answer
303 views

Finding the optimal teams ranking based on the table of match results

My original question was this: So my task is to score all the possible rankings of the 14 SEC football teams and find the best one, using who won in head-to-head games as the sole criterion (so ...
3
votes
0answers
218 views

Automated searching for maximal 2D point configurations

I have some black-box function that takes lists of 2D points, and I would like to find some practical methods of searching for collections of points that maximize it. Motivation I've come across ...
2
votes
4answers
1k views

How do I find the position of the maximum value in each column of a table?

Given a table of values, I know how to find find maximum values, but how do I find the position of the maximum value in each column. For example, given ...
2
votes
2answers
42 views

Maximise a function over real and complex parameters [closed]

I have the function f[b_x_] := Exp[-I b] Sin[I x], where $x$ is real and $b$ is complex. I want to maximise the function $f$ over $x$ and $b$, but it is ...
2
votes
4answers
93 views

Sorting polynomials based on their y value and finding their intersection

I've got the following list of polynomials, ...
2
votes
1answer
39 views

Nested maximum function not working

I am trying to maximize a function which is itself a maximized function. For example, see the below. Can someone explain this error: ...
2
votes
1answer
47 views

How to plot and print the maximum value in a ContourListPlot[]

I have managed to manipulate functions from a list of data points. The data table is large and thus is in this link. ...
2
votes
2answers
303 views

Problem with Solve (Lagrange multiplier)

I'm trying to solve a simple maximization problem, which I can easily solve by hand using the Lagrangian method. I want to maximize UH subject to ...
2
votes
1answer
94 views

Maximize with matrices

How do I use maximise with an arbitrary sized symbolic matrix? e.g for a small matrix it is fine to write it out, ...
2
votes
1answer
190 views

Local Max/Min from the list with fluctuation

I am trying to find the local minimum of the list of data with some noise. Here is how the data looks like below image, and I want to extract the three points. From an question by giacomo (link), I ...
2
votes
1answer
50 views

How to find the distances between two adjacent maxima in a solution from NDSolve

I try to find a general approach to plot the time evolution of horizontal distances from maximum to maximum in a solution of PDE. The solution u[x,t] normally have ...
2
votes
1answer
57 views

Maximization of a a PiecewiseExpand funcion

I have the following 3 piecewise functions and their upper envelope. ...
2
votes
1answer
68 views

ArgMin and NArgMin gives different result

Im doing the same problem with ArgMin and NArgMin, however NArgMin messes up the order of the solution. Given function: ...
1
vote
2answers
98 views

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

I need to find the max value of: f[x_, y_] := 9 Log[x^2+2y^2+1] - x^2 - y^2 which has a center at the origin and radius 4. Maximize and NMaximize are not working ...
1
vote
3answers
96 views

Plot maximum value of a function of three variables

Given a function f[\[Theta]_, \[Phi]_, t_] given by ...
1
vote
2answers
83 views

Add elements to the maximum values of a list

Hi i have a list of n elements and i want to know the 30 maxim values of list without changing his order. And suppose that i have a second list with n elements and i want to add this elements to the ...
1
vote
3answers
896 views

Finding maximum value with position from Table of values

I have this table of values, how do I find the maximum value? i.e. find $z_{max}(x,y)$ ...
1
vote
1answer
60 views

Why can MaxValue simply not get the exact result I want? [closed]

8/7 (9 + 4 Sqrt[2]) That's the result I want. How can I get x and y at the same time with respect to max? How can I add the constraint that both x and y belong to ...
1
vote
2answers
75 views

How do I find all maxima of this function?

I have to find all the maxima of the function fun[t_?NumberQ] := NIntegrate[1/y^(11/3) Cos[y t], {y, 1, 2 }] To find the poit with zero first derivative I have ...
1
vote
1answer
38 views

Linear Programming using Maximize

I am trying to solve a more complicated version of the following LP problem: I have some constraint amounts a,b,c and two variables made of those amounts. I would like to find the best way to ...
1
vote
3answers
266 views

How to extract maximum value coordinates from ParametricPlot of function

I have a ParametricPlot ParametricPlot[{Sin[x], 2 Cos[x]}, {x, 0, 2 π}] How to know the maximum value on Y-axix and X-axis?
1
vote
2answers
194 views

Find maximum of 'y' coordinates from a list of duplicate 'x' coordinates

I have a multidimensional-variable list, suppose for example {{x1,y1},{x2,y2}..}. I have duplicate values for the 'x' coordinates and I need to find for the duplicate 'x' elements the corresponding ...
1
vote
3answers
47 views

Highlight largest value in each column of `Table // TableForm`

I am exploring colossally abundant numbers; in particular the set of specific 'critical epsilon values'. I table the function DivisorSigma[1, n]/n^(1 + \[Epsilon]) ...
1
vote
1answer
145 views

How to do Maximum Likelihood Estimation with this Multivariate Normal?

I'm trying to perform Maximum Likelihood Estimation, where the data follows a Multivariate Normal. The problem, I think, is that in the density, we have the inverse of the covariance matrix. This ...
1
vote
2answers
64 views

Finding maximum in the boundary limits using mathematica [closed]

Im trying to find the maximum of the function on the boundary: f[x_, y_] := 10 Log[x^2 + 2 y^2 + 1] - x^2 - y^2 That is within the boundary: ...
1
vote
1answer
73 views

Has Mathematica derived the maximum here?

Suppose I define a function as f[l_, a_, p_] := (l^(1 - 2*p))/(l + a) Then I solve the expression for the first derivative equalling to zero for ...
1
vote
1answer
68 views

How to show constraints of a maximization on a plot?

I have this function F: ...
1
vote
1answer
1k views

How to find the local maximum of a list [duplicate]

I have imported a wav sound that a = Import["sound.wav"] and we know that soundStrength = a[[1]][[1]] is a list of sound ...
1
vote
1answer
37 views

Maximize violate constraint of non approximated function

here is my code Maximize[{-(10/17) - x + (20 (1 + x))/(17 (2 + x)), 0 <= x <= 1.5}, x] The result I got: {6.66134*10^-16, {x -> -9.79755*10^-16}} As you ...
1
vote
2answers
73 views

problem with maximize function and envelope function

I Have the problem with the maximize of this problem: ...
1
vote
1answer
101 views

Given a function $f(t,s)$, compute $\max_{t_2\in [0,1]}\min_{t_1\in [0,1]} |f(t_1,s_1)-f(t_2,s_2)|$

Given a continuous and bounded function $f(t,s)$, $t,s\in[0,1]$, I would like to compute $$\max_{t_2\in [0,1]}\min_{t_1\in [0,1]} |f(t_1,s_1)-f(t_2,s_2)|,$$ for each numeric values of $s_1$ and $s_2$....
1
vote
2answers
49 views

Define x as a multiple of a number as a constraint in the Maximize function

I am trying to optimize a linearly constrained Production Function. I have three inputs and want them all to be multiples of 150. I can make all the inputs to belong to the Integer Domain but is there ...
1
vote
1answer
68 views

Maximizing with an assumption

I want to maximize an expression assuming p is between zero and one. What should I do? ...
1
vote
1answer
109 views

Problem with constraints of NMaximize

I am using NMaximize to solve the following problem. ...
1
vote
0answers
38 views

Trouble Plotting the maximum values of a function

First off, I apologize if this question is either incredibly obvious, or has been clearly asked and answered before. I've been searching the forum for a while, and the questions and answers thusfar ...