Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [maximum]

Questions on finding the largest value of a set, extreme values of an expression, or on Mathematica functionality for maxima testing.

0
votes
2answers
53 views

Parametric Find Maximum

I'd like to plot the maximum of a curve in function of a parameter. Meaning I looking for maxima that depend on a parameter. Here is what I tried to do but FindMaximum is not parametric, so it did ...
0
votes
1answer
36 views

Finding two peaks of a plot (dataset)

I have a dataset which on plotted looks like the following: As you can see there are two maximas around origin, I want to find out the (x,y) value of both of them, is there a way to do so?
1
vote
3answers
61 views

Plot maximum value of a function of three variables

Given a function f[\[Theta]_, \[Phi]_, t_] given by ...
0
votes
0answers
34 views

NMaximize with a variable ranging over permutations

I have an optimization problem where there are $n$ activities and I want to find an optimal schedule of those activities. The schedule is specified as $S=(\mathbf{t},p)$ where: $\mathbf{t}=\left(t_{...
0
votes
1answer
67 views

Maximize and FindMaximum drive me crazy

I have to run a numerical study. As part of it I have to solve: ...
0
votes
0answers
22 views

Using MaxValue to define a function, plotting is slow

I'm trying to compute c-functions (from the theory of optimal transport), and so I must compute `supremums' for some function $f$ and cost $c$ $$g(y)=\sup_{x\in \mathbb{R}} c(x,y)-f(x)$$ My code ...
0
votes
2answers
37 views

Unable to find maximum value of my custom function

myfunn[x_, y_] := Module[{}, If[x < 5, Return[0]]; If[x < 10, Return[2]]; x*y]; I'm unable to find the maximum value of this function over the ...
3
votes
2answers
123 views

NMaximize is not converging to a solution

I am trying to use NMaximize to find the maximum value of a variable that satisfies the given constraints. Since the constraints aren't straightforward, I am using ...
1
vote
1answer
76 views

Problem with constraints of NMaximize

I am using NMaximize to solve the following problem. ...
0
votes
1answer
41 views

Maximize function subject to condition [closed]

What commands should I use in Mathematica to obtain the maximum or minimum of a function subject to conditions? For example, find the maximum of the following function? $\qquad T=\sqrt[3]{2\,x+5} + \...
0
votes
0answers
72 views

Find the maximum of a function involved with Floor function

My function is $$ f(H,p) = \left\lfloor \dfrac{\lfloor H/p\rfloor + 3 - \sqrt{(\lfloor H/p\rfloor + 1)^2 - 4H}}{2} \right\rfloor $$ The constraints are $ H \geq p(4p-1) $, $ p $ is prime although ...
1
vote
2answers
45 views

Define x as a multiple of a number as a constraint in the Maximize function

I am trying to optimize a linearly constrained Production Function. I have three inputs and want them all to be multiples of 150. I can make all the inputs to belong to the Integer Domain but is there ...
1
vote
1answer
133 views

How to do Maximum Likelihood Estimation with this Multivariate Normal?

I'm trying to perform Maximum Likelihood Estimation, where the data follows a Multivariate Normal. The problem, I think, is that in the density, we have the inverse of the covariance matrix. This ...
0
votes
2answers
66 views

Finding a maximum on a plot

My script is currently: ...
0
votes
0answers
49 views

NSum: Summand (or its derivative) is not numerical at point

I am experiencing a problem in evaluating the maximum of a function that is defined as a sum ...
0
votes
1answer
104 views

Periodogram local maximum

I want to find dominant frequencies of periodogram exactly. ...
3
votes
0answers
198 views

Automated searching for maximal 2D point configurations

I have some black-box function that takes lists of 2D points, and I would like to find some practical methods of searching for collections of points that maximize it. Motivation I've come across ...
2
votes
1answer
72 views

Maximize with matrices

How do I use maximise with an arbitrary sized symbolic matrix? e.g for a small matrix it is fine to write it out, ...
4
votes
2answers
258 views

List of critical points

In TI-Nspire CX CAS, writing: exp▶list(fMax(sin(x),x,0,10),x) I get: {((π)/(2)),((5*π)/(2))} while in Wolfram Mathematica, writing: ...
2
votes
2answers
183 views

Problem with Solve (Lagrange multiplier)

I'm trying to solve a simple maximization problem, which I can easily solve by hand using the Lagrangian method. I want to maximize UH subject to ...
1
vote
3answers
83 views

How to extract maximum value coordinates from ParametricPlot of function

I have a ParametricPlot ParametricPlot[{Sin[x], 2 Cos[x]}, {x, 0, 2 π}] How to know the maximum value on Y-axix and X-axis?
1
vote
0answers
35 views

Trouble Plotting the maximum values of a function

First off, I apologize if this question is either incredibly obvious, or has been clearly asked and answered before. I've been searching the forum for a while, and the questions and answers thusfar ...
0
votes
2answers
44 views

Hot to single out numeric values from NMaximize

I have some problem with NMaximize. The function NMaximize gives result like this NMaximize[f[x],x] {f[xmax] ,{x -> xmax}} I've read in various answers that ...
1
vote
2answers
57 views

Finding maximum in the boundary limits using mathematica [closed]

Im trying to find the maximum of the function on the boundary: f[x_, y_] := 10 Log[x^2 + 2 y^2 + 1] - x^2 - y^2 That is within the boundary: ...
0
votes
1answer
60 views

Getting the index of maximum while generating the values with table

Say I am tabling the values of a two variable function using a list of indexes (which I can't assume to be ordered), I'd like to return the index (or the list of indexes) which yield the maximum value(...
0
votes
1answer
167 views

Finding peaks/maxima while extracting the range of x-values

I have read similar questions about finding peaks on the web (Finding peaks of data) as well as the FindPeaks function but I'm struggling to put them into proper context for my case. I am still a new ...
3
votes
3answers
173 views

Maximization of a function over a discrete set

I have a function of three variables: $f = f(x, y, z)$. I need to maximize $f$, when $x$, $y$ and $z$ run given sets of values: $x \in (x_1, x_2, x_3)$, $y \in (y_1, y_2, y_3)$ and $z \in (z_1, z_2, ...
0
votes
1answer
49 views
0
votes
0answers
78 views

How to maximize the modulus of a multivariate complex-valued function?

My problem is the following. I have a messy, complex-valued function ...
1
vote
1answer
70 views

Has Mathematica derived the maximum here?

Suppose I define a function as f[l_, a_, p_] := (l^(1 - 2*p))/(l + a) Then I solve the expression for the first derivative equalling to zero for ...
0
votes
2answers
125 views

Finding the associated parameter of the maximum

I am trying to find the maximum value in a list. I can find the maximum value, but how can I find the value of the associated parameter at the maximum? (I don't want the index of the element in the ...
1
vote
1answer
63 views

How to show constraints of a maximization on a plot?

I have this function F: ...
1
vote
1answer
58 views

Maximizing with an assumption

I want to maximize an expression assuming p is between zero and one. What should I do? ...
1
vote
0answers
75 views

How maximaze very complex problem in a few hours using some server?

I need to execute a code that runs a maximize function built-in function with symbolic variables. The problem is that my computer has not enough memory (has 4 GB of ...
0
votes
0answers
95 views

how to write the Max of this function / How can i use Max[]

Hi every one I really need your help in this question write the function in the picture nction in Mathematica because I need to make graph... ?? could anyone help me ? I'd appreciate some help. ...
0
votes
1answer
100 views

Maximimize not working properly?

I try to evaluate the Integer Maximum of a given function under constraints. ...
6
votes
1answer
148 views

MaximalBy[#, “votes”] & not equal to MaximalBy[“votes”]?

I'm looking at the results of the 2015 UK general election ...
0
votes
1answer
64 views

Finding a column from Max comparing each element of two columns; subsequent column used for backward calculation

I have lensp=21; rho=0.975; e1=0; pid= 0.5212; qid=0.4788; tid=10; based on my own calculations I have given vectors of dimension ...
4
votes
1answer
173 views

How to compare lists in tuples

I have one problem write a function to maximize the positive number of tuples of a given list which satisfy the condition that there exists no number (except zero) two or more times in one tuples. ...
3
votes
2answers
828 views

Finding maximum value of a discrete function

I have the following function. I want to graph its discrete plot and find the points where it takes on the highest value: ...
0
votes
0answers
69 views

max-min calculation with more functions

If I have max-min with two functions: $$\max_{x\in[0,1],y\in[0,1]} \min [f_1(x,y);f_2(x,y)]$$ I can find numerical solution with: ...
0
votes
1answer
116 views

Finding all the local minima from a noisy data plot [duplicate]

I have a data with noisy data which has lot of minimas. One such data file is shown here. What I have been trying to do is the following, (1) I would to find all the minimas with respect to the ...
1
vote
1answer
154 views

Local Max/Min from the list with fluctuation

I am trying to find the local minimum of the list of data with some noise. Here is how the data looks like below image, and I want to extract the three points. From an question by giacomo (link), I ...
5
votes
2answers
353 views

Get envelope of a set of functions?

I'm new with mathematica and I'm trying to solve a problem. I have a set of functions in the same variable. Let's say the domain is [0,2]. I would like to get an ordered list of the functions ...
-1
votes
1answer
113 views

How to graph the max and min values of a sheet?

Hi I just start working in Mathematica version 10.3.1 and I want to graph a sheet of data that I created in Excel (yeah i use Windows). The problem is i have so many data; 200 columns and 50 row of ...
5
votes
2answers
323 views

Max of imported numerical data will not work

I loaded a list with 400,000 values from a file. The list was loaded correctly as I can get it's length (by Length[]) and I can also plot it. Why can't I get the Max or Min of this list though? When ...
1
vote
2answers
83 views

Add elements to the maximum values of a list

Hi i have a list of n elements and i want to know the 30 maxim values of list without changing his order. And suppose that i have a second list with n elements and i want to add this elements to the ...
3
votes
2answers
140 views

MaximalBy, MinimalBy with Infinity

I don't understand why this doesn't work: In[30]:= MinimalBy[{{1, -Infinity}, {2, 3}}, Last] Out[30]= {{2, 3}} While this works seemingly: ...
3
votes
2answers
135 views

Retaining relative sizes of local maxima using MaxDetect[List]

I would like to be able to find the position of the two greatest local maxima in a list. For the example: list={1,2,3,4,2,1,2,6,5,4,3,2,} I would like to return <...