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
2 votes
1 answer
55 views

Local extrema points of a function of two variables

i need to find local extrema points of a function of two variables, but it doesnt work FindMaximum[x^3 - 2 y^3 - 3 x + 6 y, {x, y}] I have this error: ...
user avatar
  • 43
3 votes
2 answers
81 views

Find global maximum of InterpolatingFunction in interval but not maximum value

I have InterpolatingFunction generated from experimental data with many local maxima, one major peak I need to find, and the tail that grouse much higher then major peak. I tried to find my peak with ...
user avatar
2 votes
1 answer
76 views

Parametric minimization of a quadratic expression in two variables

I am not an expert in using Mathematica, and I do not understand the following result (apologies if it appears trivial). I want to find the general solution to minimize the following expression over $...
user avatar
4 votes
1 answer
58 views

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

Hi I have ten data set and manage to calculate the mean using them. However I hope to find out the upper and lower limit in each point and plot it out with the mean data. May I ask how can I ...
user avatar
  • 302
1 vote
2 answers
80 views

How do I find the minimum and maximum values of a function of two variable with constraints? [closed]

The question is find the minima and maxima of the function $$f(x,y)= x^2+5y^2+11x-12y+30$$ on $(x^2)/81+(y^2)/49 \leq 1.$ I've been trying to use FindMaxValue and <...
user avatar
  • 85
3 votes
1 answer
66 views

Finding maximum of 2D interpolating function as a function of one of the variables

I am solving a 2D PDE in space and time b(r,t) and would like to find the maximum value of b in space as a function of time t. Using the solution for maximising a 1D interpolating function from here, ...
user avatar
0 votes
0 answers
51 views

extremum points

I'm trying to find Min and Max points of the polynomial below, but it seems that the expression is very complicated to mathematical, I've tried a numerical function, such as NMinimize, NRoots, Solve, ...
user avatar
  • 5
0 votes
0 answers
34 views

How to obtain the most accurate maximum value of the given equation? Changing WorkingPrecision gives different results

I have two functions $ f(x,y) $ and $ g(x,y) $ over the domains $ 1.56 <x< 1.6$ and $3<y<\pi$. ...
user avatar
  • 463
0 votes
2 answers
109 views

How to calculate the maximum value of $x $ which satisfy the conditions $g(x,y)=0$ and $f(x,y)>1$?

I have two functions $ f(x,y) $ and $ g(x,y) $ over the domains $ 1<x< 2$ and $0<y<\pi$. I use ContourPlot to ses those values of $(x,y)$ for which $g(...
user avatar
  • 463
0 votes
2 answers
68 views

Find maximum value of a function - wrong output? [closed]

I want to find the local maximum value of the function: where the domain is 0 < x < 3/2. Wolfram|Alpha gives me the correct answer while Mathematica gives me a totally different answer. Why is ...
user avatar
  • 1
1 vote
0 answers
73 views

Full Information Maximum Likelihood - Under some other name in Mathematica

I have recently stumbled upon something called FIML - Full Information Maximum Likelihood. Apparently this methodology helps overcome missing variables provided the gaps are random. Searching the ...
user avatar
  • 579
3 votes
2 answers
78 views

Argument of maximum value of a table in range

I have data = {{817, 501}, {818, 549}, {819, 562}, {820, 534}, {821, 534}, {822, 535}, {823, 516}}; How to find argument "822" for 535 (which is the ...
user avatar
-3 votes
1 answer
51 views

Maximize function problem [closed]

I don't understand why I'm getting no solution with the Maximize function in this case: while it returns the right result when I impose $y\leq0.999$ (or, equivalently, $x\leq0.999$):
user avatar
  • 47
0 votes
2 answers
94 views

NMaximize - global maximum fail - How to?

Problem : Let x,y,z be non-negative real number whose sum is 1. Find maximum of 0.2x + 0.2y + x^2*z + y*z^2 What I did first was reducing variable. ...
user avatar
  • 2,451
0 votes
0 answers
90 views

Solving a system of equations as part of maximizing a multivariable function

This is my code ...
user avatar
  • 270
0 votes
0 answers
61 views

How can I set a find max value function with parameter in NDSolve

For example, Here is a NDSolve function with a parameter of w ...
user avatar
  • 55
2 votes
3 answers
221 views

Finding the Global Minimum

Consider the function ...
user avatar
  • 4,138
0 votes
0 answers
58 views

NMaximize computes wrong value

This question is a continuation of NIntegrate with a complicated function over the 4-sphere . Now I define a certain new function called "improvement" via: ...
user avatar
  • 103
1 vote
1 answer
78 views

Function range with numerical method

...
user avatar
  • 2,451
3 votes
2 answers
338 views

Polygon Diameter

I want to calculate the diameter of a convex polygon. That is, the largest distance between any pair of vertices. Here's my approach ...
user avatar
  • 4,138
0 votes
1 answer
58 views

Maximization under constraints / find maxima

I am trying to code the following maximization program that I am not able to solve algebraically (Of course I manage to get the first derivative, but struggle finding its root): $\begin{equation} Max_{...
user avatar
  • 107
3 votes
4 answers
346 views

How can I mark the maximum value in a plot?

How can I mark the maximum value in a graph? The graph that I would like to determine its maximum value, is an output of the following program: ...
user avatar
0 votes
1 answer
68 views

NIntegrate allegedly evaluating to non-numerical values

I'm getting non-numerical-evaluation error messages despite not having any symbolic variables in my code. Here's a MWE representative of what I'm doing: ...
user avatar
  • 618
0 votes
0 answers
29 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 ...
user avatar
  • 528
1 vote
3 answers
127 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 ...
user avatar
  • 13
1 vote
0 answers
53 views

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

I'm new to Mathematica. I have the function: ...
user avatar
  • 11
3 votes
2 answers
100 views

Syntax error in NMaximize despite following official documentation

This is the code I'm trying to run: ...
user avatar
2 votes
0 answers
61 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 ...
user avatar
  • 193
0 votes
1 answer
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: ...
user avatar
1 vote
1 answer
63 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 ...
user avatar
  • 113
1 vote
1 answer
47 views

Find maximal elements of list (remove dominated elements)

Suppose I consider a to be greater than b if a[[1]] >= b[[1]] and ...
user avatar
  • 1,055
6 votes
2 answers
156 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 ...
user avatar
7 votes
2 answers
510 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 ...
user avatar
  • 1,069
3 votes
4 answers
448 views

Nested optimization problem - Function approximation

I need to maximize the following function (the input to NMaximize below) ...
user avatar
2 votes
2 answers
81 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....
user avatar
  • 147
4 votes
2 answers
188 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$...
user avatar
1 vote
1 answer
83 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 = ...
user avatar
0 votes
0 answers
34 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 ...
user avatar
  • 1
0 votes
1 answer
68 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: ...
user avatar
1 vote
4 answers
66 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)
user avatar
3 votes
2 answers
333 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 ...
user avatar
  • 3,553
0 votes
1 answer
147 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 ...
user avatar
1 vote
1 answer
91 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 ...
user avatar
0 votes
3 answers
84 views

How to find maxima of a numerical calculation

Suppose I have the following code: ...
user avatar
0 votes
3 answers
273 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 ...
user avatar
1 vote
0 answers
73 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 ...
user avatar
2 votes
2 answers
319 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}\...
user avatar
0 votes
1 answer
43 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$: ...
user avatar
  • 293
0 votes
2 answers
81 views

How to find the maximum of this using Nmaximise?

I have a function ...
user avatar
  • 43
-1 votes
1 answer
33 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
user avatar
  • 1