Skip to main content

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
1 vote
1 answer
52 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 ...
Jannik Wyss's user avatar
-1 votes
1 answer
91 views

Discrepancy between Mathematically Calculated Maximum Error and Maximum Error Graphically Observed in Absolute Difference Plot [closed]

Question I am encountering a discrepancy between the maximum error calculated mathematically using the NMaximize command in Mathematica and the maximum error observed graphically in the absolute ...
Alvira Yawar's user avatar
3 votes
3 answers
181 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: ...
wijjoha24's user avatar
0 votes
0 answers
42 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 ...
Grizzly54's user avatar
2 votes
1 answer
90 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. <...
user444's user avatar
  • 2,446
2 votes
1 answer
96 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 ...
wanderer's user avatar
  • 125
4 votes
1 answer
141 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.
Heidegger's user avatar
  • 321
5 votes
3 answers
216 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 ...
homocomputeris's user avatar
1 vote
0 answers
95 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 ...
Tona's user avatar
  • 31
2 votes
1 answer
118 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: ...
yode's user avatar
  • 26.8k
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$...
Julio Abraham Mendoza Fierro's user avatar
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: ...
sje1g13's user avatar
  • 45
1 vote
1 answer
91 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, ...
Georgy's user avatar
  • 305
1 vote
1 answer
74 views

Finding the maximum of a symbolic piecewise function

I have the function: coded as: ...
vivelesmaths's user avatar
0 votes
0 answers
74 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$: ...
Penelope Benenati's user avatar
2 votes
2 answers
92 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 ...
Penelope Benenati's user avatar
3 votes
1 answer
171 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 ...
math2021's user avatar
  • 749
0 votes
1 answer
104 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 ...
hilarlia's user avatar
1 vote
2 answers
219 views

How can't we find the maximum value of this?

Maximize[{ω, -(π/6) + ( k π)/ω <= π, -(π/ 6) + ((k + 1) π)/ω >= (4 π)/3, ω > 0, k ∈ Integers}, {k, ω}] // FullSimplify ...
csn899's user avatar
  • 4,315
0 votes
1 answer
74 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 ...
Kei Len's user avatar
  • 27
1 vote
1 answer
89 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 ...
Andrew Bowsher's user avatar
2 votes
2 answers
143 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 ...
MsMath's user avatar
  • 195
2 votes
1 answer
212 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,...
emnha's user avatar
  • 2,111
2 votes
2 answers
117 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 ...
cyndaquilka's user avatar
2 votes
2 answers
164 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 ...
csn899's user avatar
  • 4,315
0 votes
2 answers
38 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 ...
Edison Moreno Cardenas's user avatar
3 votes
3 answers
654 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\{\...
Jimakos's user avatar
  • 169
3 votes
2 answers
83 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 ...
ben18785's user avatar
  • 3,167
0 votes
0 answers
95 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)}{...
MaB21's user avatar
  • 70
0 votes
2 answers
65 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$ ...
Imyaf's user avatar
  • 103
0 votes
1 answer
100 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 ...
p1996's user avatar
  • 41
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: ...
blackbird_h71's user avatar
-3 votes
1 answer
55 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 ...
Jan Willem's user avatar
1 vote
2 answers
148 views

Why can't I get the maximum value?

...
karry's user avatar
  • 381
3 votes
1 answer
124 views

How can I find the maximal value of this?

I already plot the image of the function S: ...
karry's user avatar
  • 381
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 : ...
Shafa Keysa Rinjani Hananta's user avatar
3 votes
5 answers
465 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 ...
FARRAF's user avatar
  • 131
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. ...
B A's user avatar
  • 35
1 vote
2 answers
73 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: ...
Jethro's user avatar
  • 11
3 votes
2 answers
220 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 ...
Филипп Цветков's user avatar
2 votes
1 answer
120 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 $...
Penelope Benenati's user avatar
6 votes
1 answer
132 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 ...
Boajj04's user avatar
  • 320
1 vote
2 answers
565 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 <...
Arnold's user avatar
  • 115
3 votes
1 answer
80 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, ...
selforgphysics's user avatar
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, ...
TTT's user avatar
  • 57
0 votes
2 answers
202 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(...
math2021's user avatar
  • 749
0 votes
2 answers
149 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 ...
Lisa's user avatar
  • 1
1 vote
0 answers
93 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 ...
Rogo's user avatar
  • 930
6 votes
4 answers
136 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 ...
Paweł Chmolewski's user avatar
-3 votes
1 answer
59 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$):
Tech's user avatar
  • 47