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
0
votes
0answers
20 views

How do I get actual solutions from MaxValue?

Say I want to calculate the maximum value of a simple function of two variables: f[r_, t_]:= r Cos[t]^3 (1 + r Sin[t]) with respect to the variable ...
1
vote
3answers
117 views

Maximize - Non binding constraint is changing the result

When I add a non-binding constraint to a maximization problem the result changes. I don't understand why. Below you can find the code that I am using. For the maximization A, H = 6837.66 For the ...
1
vote
0answers
50 views

How to best compute the maximum value of a multivariable function?

I'm new to Mathematica. I have the function: ...
3
votes
2answers
88 views

Syntax error in NMaximize despite following official documentation

This is the code I'm trying to run: ...
0
votes
0answers
21 views

Maximizing a function that involves a boolean

I want to maximize a rather simple function that contains a Boolean. If needed, we could set all parameters positive and require that also Mprofit and ...
2
votes
0answers
50 views

Maximize a function over complexes

Assume that I have a bounded real valued function $h(a,b)$ such that $a\in \mathbb{C}$ and $b\in [0,1]$. Can Mathematica maximize such function over $\mathbb{C}\times [0,1]$? I tried some functions ...
0
votes
1answer
36 views

Unable to formulate the correct formulation for maximize a function

So, i want to express these: $$\max(\cos(x)\cos(y)\cos(z)),\quad x+y+z=\pi,\quad x,y,z\in(0,\pi]$$ Attempt: ...
1
vote
1answer
43 views

NMaximize seems not to work with a plottable function

I am trying to use maximum likelihood for estimating a parameter for a model based on some experimental data. The likelihood function I am trying to maximize calls a number of custom functions I have ...
1
vote
1answer
43 views

Find maximal elements of list (remove dominated elements)

Suppose I consider a to be greater than b if a[[1]] >= b[[1]] and ...
6
votes
2answers
126 views

Find largest and second larges number in each row and column

I am trying to find the largest and second largest number in each row and column. The largest numbers are easy, but how do I find the second largest? After I found them I also want to calculate the ...
7
votes
2answers
407 views

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

I have a function $f(n)$ over $n\in\mathbb{N}$. I want to know its maximum value over a very large domain, say $n=1,2,3,4,...,10^6$. Is there a way to ask Mathematica to give me the maximum value of ...
0
votes
0answers
38 views

Symbolic min max optimization

I have the following seemingly simple optimization problem Minimize[{Max[p^(c - 3) , a p^(c - 1) , b p^c], d <= p <= 1}, p] but the Mathematica does nothing. ...
3
votes
4answers
391 views

Nested optimization problem - Function approximation

I need to maximize the following function (the input to NMaximize below) ...
2
votes
2answers
57 views

How to find maximum of two or more parametric functions?

I have two parametric functions in which I know the range of parameters and I want to find the maximum of these two functions by conditions on the value of the variable. Suppose $f(x)=x-c$ and $g(x)=r....
4
votes
2answers
184 views

Maximum of all distances between any pairs of vertices of a random triangle

Given a set $S_n$ of $n$ points selected uniformly at random in a $d$-ball, I want to estimate the average length of the longest side of a triangle having as vertices any three distinct points of $S_n$...
1
vote
1answer
44 views

How do I find the maximum of a certain complex expression? [closed]

I have this expression: TFilter1 = -(7.5438*10^8/(6.34731*10^8 + 48270.2 s + s^2)) where s is a complex variable give by $s = ...
0
votes
0answers
32 views

Finding/Printing Variables that Correspond to the Maximum Output of a List

I am very new to Mathematica and been having a problem that is frustrating because I feel that there must be a simple solution which I just can't grasp. Essentially, I am looking to automatically ...
0
votes
1answer
61 views

Maximize a simple expression based on EuclideanDistance takes too long

Do you know if there is a mistake in this command syntax? It is very simple and still it takes too long. I cannot obtain any result at all: ...
1
vote
4answers
58 views

I want to maximise my function over a particular domain

I have tried NMaximise. But I am getting an error always. Even if my command is correct. My function is Cos[π E^x] and I want to maximise it over the range (-3,3)
3
votes
2answers
278 views

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

Given a list of functions what is the best way to find the domains on which each function is the smallest. Simple example ...
0
votes
1answer
103 views

Maximize an expression with respect to a variable after its minimization with respect to other variables

I started to use Mathematica a few time ago. I want to minimize the following expression (function of $l,p,q,r,c$) with respect to variables $l, p, q, r$ and then maximize the result obtained with ...
1
vote
1answer
47 views

Minimize a function of a variable of four variables and one parameter with constraints

I just started to use Mathematica. Using the following simple command to minimize a function of variables $a,b,c,d$ with parameter $n$, it takes too much time. Do you know if there is a mistake in ...
0
votes
3answers
75 views

How to find maxima of a numerical calculation

Suppose I have the following code: ...
0
votes
3answers
114 views

NMinimize: How to avoid solutions that do not satisfy constraints within a certain tolerance?

I just started to use Mathematica a few weeks ago. Using NMinimze, I would like to avoid solutions that do not satisfy certain constraints (although they "almost" satisfy them). Do you know ...
1
vote
0answers
60 views

Maximize taking too long

I just started to use Mathematica a few weeks ago. I am afraid there is something that does not work on my laptop because, for the following simple command, it takes too much time. Do you know if ...
1
vote
2answers
184 views

Finding the maximum of a piecewise function

I have the following piecewise function of the variable $e_f$: $$g(a,b,c,w,F,e_h,e_f)=\begin{cases} \frac{(c-a e_f) (e_f (4e_f w-a)+c)}{8 b e_f^2} & \left(e_f=e_h\land e_f>\frac{c}{a}\...
0
votes
1answer
40 views

Problems in optimizing a function over two variables

The following function needs to be maximized over the variable $a1$ and $a2$ in the range $0 \le a1 <1$ and $0\le a2 <1$: ...
0
votes
2answers
74 views

How to find the maximum of this using Nmaximise?

I have a function ...
0
votes
0answers
52 views

How to find the maxima of this function where we have variables as powers

I have this function ...
-1
votes
1answer
30 views

How to find the local maximum and minium points,as well as the interval of increase/decrease on the derivative equation [closed]

How to find the local maximum and minimum points, as well as the interval of increase/decrease on the derivative equation,x^6-10x^5-780^3+2500x^2
1
vote
2answers
30 views

How to find $ (x, y) $ corresponding to $ z_\text{max} $ in $ \{x, y, z\} $-table?

I have been given a table a of the form ...
0
votes
1answer
86 views

How do I find the maximum of this quantity?

I am looking for the maximum of the function $$V(r^*)=\left( 1-\dfrac{2m}{r} \right)\left( \dfrac{l(l+1)}{r^2}-\dfrac{6m}{r^3} \right)$$ in the coordinate $r^*$ for given $l$ and $m$, where $r^*=r+...
2
votes
1answer
54 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
56 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
58 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
53 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
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
131 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
64 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
0answers
85 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 ...
1
vote
1answer
40 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
67 views
0
votes
0answers
62 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
80 views

problem with maximize function and envelope function

I Have the problem with the maximize of this problem: ...
1
vote
2answers
91 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
24 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
69 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
67 views

Maximization of a a PiecewiseExpand funcion

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

Optimising the Selection of MaxValue in Association

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

Sorting polynomials based on their y value and finding their intersection

I've got the following list of polynomials, ...