Questions tagged [maximum]
Questions on finding the largest value of a set, extreme values of an expression, or on Mathematica functionality for maxima testing.
160
questions
0
votes
3
answers
92
views
Find analytical expression for t as a function of x for first maximum in a periodic function
I have the following expression:
3 Csc[2 \[Pi] x t] Sin[4 \[Pi] x t]^2
I know the first maximum occurs at:
...
1
vote
1
answer
83
views
How to calculate maximum between two or more lists element by element and also the index corresponding to the maximum element?
I am looking for a function say f such that for example
f[{a1,b1,c1},{a2,b2,c2}] will give {Max[a1,a2],Max[b1,b2],Max[c1,c2]}
and also a function g say such that
g[{{a1, a2, a3}, {b1, b2, b3}},{{c1, ...
0
votes
1
answer
58
views
Finding the maximum of a symbolic piecewise function
I have the function:
coded as:
...
0
votes
0
answers
65
views
Maximize does not finish or does not work
I need to maximize the following expression over the two variables $d$ and $a$, in terms of the parameters $t, m, k$:
...
2
votes
2
answers
89
views
Minimax problem where a combination of Minimize and Maximize gives no result at all
I rarely use Mathematica, but I usually do not have any problem with simple commands like Minimize or Maximize. I have find to ...
3
votes
1
answer
166
views
Is it possible to ask Mathematica to obtain the function describing the upper and lower boundaries of a combinations of functions?
Assume that I have three one-variable non-periodic functions $f(x),g(x),h(x)$ for $x>0$. The question is: is it possible to ask Mathematica to obtain the function describing the upper and lower ...
0
votes
1
answer
85
views
ArgMax returns the input
I am new to Mathematica so I don't know if I am missing something.
I am trying to use ArgMax for a specific function I have, which includes ...
1
vote
2
answers
213
views
How can't we find the maximum value of this?
Maximize[{ω, -(π/6) + (
k π)/ω <= π, -(π/
6) + ((k + 1) π)/ω >= (4 π)/3, ω > 0,
k ∈ Integers}, {k, ω}] // FullSimplify
...
0
votes
1
answer
68
views
3D plot not working, find max/min points [closed]
Im trying to plot this graph in mathematica:
(x+y)sin(x-y)
And this is my in- and output:
Plot3D[(x + y) (Sin[x - y]), {x, -50, 50}, {y, -50, 50}]
The output is ...
1
vote
1
answer
73
views
Finding Max/Min of interpolated function and average value above/below the x axis
I have the below code used to create an interpolation function that will plot the difference between two interpolated functions (to compare between different periods of time).
However, I would like to ...
2
votes
2
answers
135
views
Is it possible to ask Mathematica to find those points $(x,y)$ at which the given function may reach its global/local extrema?
I have this two-variable function $f(x,y)$ for {x,-Pi,Pi} and {y,-Pi,Pi} in which $\{a,b,c\}$ are real parameters (can be ...
2
votes
1
answer
153
views
Is it possible to obtain the symbolic expression for the maximum value of a function?
Is it possible to obtain the symbolic expression for the maximum value of out as a function of A,...
2
votes
2
answers
96
views
NMaxValue - function is not a real number
I'm trying to use NMaxValue to numerically find maximal values of the function F[z]. The problematic part of my code is as ...
2
votes
2
answers
158
views
Getting an exact value from FindMinimum [closed]
FindMinimum[{(Sin[a]^2 + Sin[b]^2)/Sin[c]^2,
a + 2 b == π/2 && a + b + c == π && a > 0 && b > 0}, {a, b,
c}]
The numerical ...
0
votes
2
answers
37
views
Maximizing functions with statements similar but result different
I would like to know why when I maximize the sum of two functions with similar expressions (Qu and Qm), it gives me different results (nu and nm), since they should be the same results because the ...
3
votes
3
answers
528
views
Polynomial approximation of max function
Let me just say upfront I'm not a mathematician, I'm rather looking for a practical answer to my question. I was wondering if there is a polynomial approximation for the function
$$\max(0,x)=\left\{\...
3
votes
2
answers
82
views
Why does Maximize return this unevaluated?
Maximize[{PDF[NormalDistribution[0, sigma], x], sigma > 0}, x, Reals]
Just returns unevaluated (when, obviously, it should return ...
0
votes
0
answers
90
views
Maximization Problem
I am trying to find the solution of the following problem.
$ \max_{n_{\in [1,M]}} \frac{n \left(\frac{k (n-2 (\rho -1) \tau )}{\frac{k n (n-2 (\rho -1) \tau )}{2 (n+1)^2}+1}-2 \rho (\tau -1)\right)}{...
0
votes
2
answers
62
views
How do to create 3D plot for the argument from two another arguments for maximum of the function?
How do to create 3D plot of ${t_{opt}} = {f_2}\left( {x,y} \right)$, where ${t_{opt}}$ is corresponding to maximum value of ${f_1}\left( {x,y,t} \right)$ at the limited ranges of $x,y,t$? If $t$ ...
0
votes
1
answer
94
views
Maximization of a concave function with contraints in the arguments
I have been struggling on solving this problem. Suppose you have a function f(x, y) that is concave in x and y. I want to find (x, y) that maximize f(x, y) with x ...
0
votes
0
answers
35
views
Evaluation stops without output or error when using Nested Maximize
I am trying to evaluate a max max min problem. The code is as follows:
...
-3
votes
1
answer
51
views
Maximum number of routings for n points [closed]
I'm trying to formulate an equation to calculate the maximum number of routings possible for a given amount of points, with the following rules or restrictions:
A route must contain atleast one point
...
1
vote
2
answers
140
views
3
votes
1
answer
124
views
How can I find the maximal value of this?
I already plot the image of the function S:
...
0
votes
0
answers
44
views
How to find the positive maximum value of this total profit function?
So I have this function and I want to find the maximum value and the plot for x
I'm not really sure if I wrote the integral function correctly in mathematica, but here is the code I attempt :
...
2
votes
4
answers
427
views
From original dataset, find the probability of each element in each row having the maximum value in its row
Suppose I have this dataset
{{1, 3, 5}, {4, 4, 2}, {5, 3, 5}, {10, 4, 10}} // MatrixForm
How do I find the probability that each cell is the maximum in its row.
So ...
1
vote
1
answer
84
views
Find binary vector within fixed distance to reference vector that maximizes the number of distances to a set of vector that are below a threshold
Input: A binary reference vector $r$, a multi-set of binary vectors $S$, and a distance function d between binary vectors of equal length. Assume that $r$ and all vectors in $S$ have the same length.
...
1
vote
2
answers
65
views
Find min value of a complex Root function [closed]
Could someone tell me how to obtain the min value of this function when lambda is between 0 and 1:
...
3
votes
2
answers
193
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 ...
2
votes
1
answer
110
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 $...
4
votes
1
answer
112
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 ...
1
vote
2
answers
508
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 <...
3
votes
1
answer
77
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, ...
0
votes
0
answers
62
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, ...
0
votes
2
answers
177
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(...
0
votes
2
answers
130
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 ...
1
vote
0
answers
86
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 ...
3
votes
2
answers
110
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 ...
-3
votes
1
answer
57
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$):
0
votes
2
answers
127
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.
...
0
votes
0
answers
131
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
...
2
votes
3
answers
423
views
Finding the Global Minimum
Consider the function
...
0
votes
0
answers
76
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:
...
1
vote
1
answer
102
views
3
votes
2
answers
400
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
...
0
votes
1
answer
136
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_{...
3
votes
4
answers
935
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:
...
0
votes
1
answer
157
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:
...
0
votes
0
answers
43
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
3
answers
144
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 ...