Questions tagged [maximum]
Questions on finding the largest value of a set, extreme values of an expression, or on Mathematica functionality for maxima testing.
173
questions
1
vote
2
answers
135
views
Find the global maxima over the interval [0,1]
I am trying to find the global maxima of this function
...
2
votes
2
answers
98
views
Partial Derivative after Numerical Integration of a Complicated Expression with Singularity at Zero
I want to generate Fig no. 2,3,4 from https://arxiv.org/pdf/2212.08237
with the help of the following equations. In Fig 3 t_(opt) is the time Q_T reaches its max value Q_T(opt) for each T.
Here is ...
18
votes
1
answer
1k
views
How to draw a number of circles inscribed in a square so that the sum of the radii of the circle is greatest?
I have a square with length of side is $a$. How to draw a number of circles inscribed in a square so that the sum of the radii of the circle is greatest? In the below picture is six circles inscribed ...
1
vote
1
answer
56
views
Why does RegionPlot handle Euler's identity differently for functions and direct expressions?
Edit
When I change the x range (e.g. {x,1,3}) I get the same error also for the direct expression. Thus, the problem exists either way and I assume it just evaluated different points?
Problem
I want ...
3
votes
3
answers
187
views
Find maximum and minimum
I have been trying to find the max and minimum values and make it to a list. I have been using some of the previous forms and it doesn´t work.This is my function:
...
0
votes
0
answers
43
views
How to find optimal solution
I want to ask something. Right now, I want to try to find the optimal solution from a function in a paper. here is the function :
And here is the numerical example :
There is solution procedure that ...
2
votes
1
answer
92
views
General Trend of a ListLogLinearPlot
I have a data file.
I must plot this using ListLogLinearPlot and identify the trend (or the mean). Below is my code for Importing the data file and plotting it.
<...
2
votes
1
answer
102
views
Maximize a function of $x$ and $y$ where $x^2 +y^2 \leq 1$
I have the following function:
$f(x,y) = x(y^2-x^2)- \frac{(x^2 +y^2)^2}{2\rho}+\frac{3x^2(y^2-4x^2)}{\rho}$ where $\rho>0$ is a constant.
My goal is to find the maximum value of this function ...
4
votes
1
answer
142
views
How to maximize over a set containing an isolated point?
How can I maximize a function F over a set composed by a compact set like [a, b], plus a single isolated point, like $[a, b] \cup \{p\}$?
I cannot code the isolated point part.
5
votes
3
answers
225
views
How to highlight top N elements in each table column?
I have tables with column and row headings, similar to this one:
table = {{"",0.1,0.01},
{{1,0},1,3},
{{1,1},2,4}}
I want to highlight top N elements in ...
1
vote
0
answers
96
views
An issue concerning the Maximize command in Mathematica [closed]
I have two sets. One set consists of constants and the other one consists of expressions depending on two variables "a" and "b". I find absolute values of correlations between the ...
2
votes
1
answer
130
views
How can I compute the maximum value of a ConditionalExpression?
If we use GeometricSolveValues in version 14.0, we can use this code to get a ConditionalExpression expr:
...
1
vote
1
answer
64
views
Is a four-variable function less than one?
I have the following function of four variables
f=Sqrt[(1 + w - x + 4 y z) - Sqrt[4 (-w + x) + (1 + w - x + 4 y z)^2]]/Sqrt[2]
I want to show that $f(w,x,y,z)<1$...
0
votes
3
answers
98
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
100
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, ...
1
vote
1
answer
95
views
Finding the maximum of a symbolic piecewise function
I have the function:
coded as:
...
0
votes
0
answers
81
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
97
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
173
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 ...
1
vote
2
answers
122
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
222
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
77
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
104
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
146
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
227
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
135
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
168
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
39
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
730
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
84
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
99
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
66
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
102
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
42
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
57
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
158
views
3
votes
1
answer
125
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 :
...
3
votes
5
answers
475
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
85
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
75
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
227
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
129
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 $...
6
votes
1
answer
134
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
573
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
86
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
65
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
225
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
156
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
96
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 ...