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
3
votes
1answer
67 views
2
votes
1answer
36 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
45 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
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 ...
0
votes
1answer
42 views

Position of maximum element in list under optimisation

For a list of several functions: functions = {a[x,y,z],b[x,y,z],c[x,y,z],d[x,y,z]}; I want to maximize the maximum value of a function of three variables. This ...
0
votes
1answer
99 views

Maximize this function

For the following matrix $$M = \begin{pmatrix} f1[x,y,z] & f2[x,y,z]\\ g1[x,y,z] & g2[x,y,z]\\ h1[x,y,z] & h2[x,y,z] \end{pmatrix} $$ with ...
0
votes
1answer
38 views

Maximise over functions in Mathematica

Define the functions $h$, $j$, and $k$ that are each functions of 3 variables: h[x,y,z] j[x,y,z] k[x,y,z] How can I find the max of these functions? I want the ...
2
votes
1answer
43 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 ...
1
vote
1answer
55 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 ...
0
votes
1answer
43 views

How to find the Maximal Absolute Error?

I found this fit but I do not understand how to find the maximal absolute error nor do I understand what it is really. I do not see what it is I would compare, would it be ...
0
votes
0answers
37 views

FindMaximum error (not a real number)

For the code below, I get several error messages once I click the "Enable Dynamics" button. However, once I run the code, the output works fine, so, if that is all I wished to do, I would just live ...
0
votes
0answers
27 views

FindMaximum + NMaximize + Arc of the Cycloid?

I am graphing the parametric equations for the arcs of the cycloid (common, curtate, and prolate). This equation works well: ...
0
votes
0answers
43 views

difference between max() and max^(0,1)

I have a really complicated function that I need to take partial derivative of. After executing the partial derivative, I got a function that contains both $\max(0,a-b)$ and $\max^{(0,1)}(0,a-b)$ for ...
1
vote
1answer
36 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 ...
0
votes
1answer
57 views
0
votes
0answers
61 views

Next maximum plot with results from NDSolve

I want to produce a Next-maximum-plot, i.e., I want to plot all local maxima $m_{i+1}$ against the local maximum $m_i$ in order to check for chaotic behavior. In particular, I have the following code:...
1
vote
2answers
73 views

problem with maximize function and envelope function

I Have the problem with the maximize of this problem: ...
1
vote
2answers
73 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 ...
0
votes
0answers
20 views

Problem with PiecewiseExpand[Max[ ]]

I have these functions: By running this command: FullSimplify[PiecewiseExpand[Max[a, b , c, x, y, z]], 9 <= \[Beta] <= 11] I obtain: However I think ...
1
vote
3answers
43 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]) ...
2
votes
1answer
57 views

Maximization of a a PiecewiseExpand funcion

I have the following 3 piecewise functions and their upper envelope. ...
4
votes
3answers
162 views

Optimising the Selection of MaxValue in Association

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

Sorting polynomials based on their y value and finding their intersection

I've got the following list of polynomials, ...
0
votes
0answers
71 views

How to differentiate a function constructed through FindRoot?

I am trying to maximize a function which has as a variable another function that was solved numerically using FindRoot. My code is below.I start by defining some parameters ...
0
votes
1answer
47 views

Sorting an Association by FindMaximum

Prompted by my wrestling with this earlier question: Changing the opacity of lines on a plot based on their value I want to sort an association by the maximum value for each of the 3 members of the ...
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
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
97 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 ...
3
votes
2answers
382 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} ,$$ ...
2
votes
1answer
65 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: ...
0
votes
2answers
79 views

Parametric Find Maximum

I'd like to plot the maximum of a curve in function of a parameter. Meaning I looking for maxima that depend on a parameter. Here is what I tried to do but FindMaximum is not parametric, so it did ...
0
votes
1answer
46 views

Finding two peaks of a plot (dataset)

I have a dataset which on plotted looks like the following: As you can see there are two maximas around origin, I want to find out the (x,y) value of both of them, is there a way to do so?
1
vote
3answers
92 views

Plot maximum value of a function of three variables

Given a function f[\[Theta]_, \[Phi]_, t_] given by ...
0
votes
0answers
38 views

NMaximize with a variable ranging over permutations

I have an optimization problem where there are $n$ activities and I want to find an optimal schedule of those activities. The schedule is specified as $S=(\mathbf{t},p)$ where: $\mathbf{t}=\left(t_{...
0
votes
1answer
72 views

Maximize and FindMaximum drive me crazy

I have to run a numerical study. As part of it I have to solve: ...
0
votes
0answers
28 views

Using MaxValue to define a function, plotting is slow

I'm trying to compute c-functions (from the theory of optimal transport), and so I must compute `supremums' for some function $f$ and cost $c$ $$g(y)=\sup_{x\in \mathbb{R}} c(x,y)-f(x)$$ My code ...
0
votes
2answers
42 views

Unable to find maximum value of my custom function

myfunn[x_, y_] := Module[{}, If[x < 5, Return[0]]; If[x < 10, Return[2]]; x*y]; I'm unable to find the maximum value of this function over the ...
3
votes
2answers
199 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 ...
1
vote
1answer
106 views

Problem with constraints of NMaximize

I am using NMaximize to solve the following problem. ...
0
votes
1answer
49 views

Maximize function subject to condition [closed]

What commands should I use in Mathematica to obtain the maximum or minimum of a function subject to conditions? For example, find the maximum of the following function? $\qquad T=\sqrt[3]{2\,x+5} + \...
0
votes
0answers
75 views

Find the maximum of a function involved with Floor function

My function is $$ f(H,p) = \left\lfloor \dfrac{\lfloor H/p\rfloor + 3 - \sqrt{(\lfloor H/p\rfloor + 1)^2 - 4H}}{2} \right\rfloor $$ The constraints are $ H \geq p(4p-1) $, $ p $ is prime although ...
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
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 ...
0
votes
2answers
227 views

Finding a maximum on a plot

My script is currently: ...
0
votes
0answers
63 views

NSum: Summand (or its derivative) is not numerical at point

I am experiencing a problem in evaluating the maximum of a function that is defined as a sum ...
0
votes
1answer
166 views

Periodogram local maximum

I want to find dominant frequencies of periodogram exactly. ...
3
votes
0answers
216 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
1answer
92 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, ...
4
votes
2answers
311 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: ...
2
votes
2answers
278 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 ...