# Questions tagged [mathematical-optimization]

Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.

1,453 questions
Filter by
Sorted by
Tagged with
55 views

### Plotting NMinimize function

I want to plot the following NMinimize function: I used GGPlot = Plot[GG[DM], {DM, 0.02, 10}, PlotRange -> All] But I get nothing! My code is ...
84 views

### Issue with NMaxValue Constrained to an ImplicitRegion

I am trying to find the maximum (and minimum) value of an interpolated function constrained to an ImplictRegion with a (partly) curved boundary. I have followed the documentation carefully and tried ...
37 views

### How to compute Max function of the following form:

I knew that in Mathematica, the "Max" function yields the largest element of any of the lists, for example, Max[x,y,z,....]. How do I implement this function with Mathematica? and what does this ...
41 views

915 views

### Possible bug in NMaximize function?

Bug introduced in 12.0 In 12.0.0 for Microsoft Windows (64-bit) (April 6, 2019) writing: ...
54 views

### How to find, for a temp. equation, Maxmum valus of position and time?

I have to find the position x and the time t for which the temperature is a maximum. I have a function ...
61 views

### ArgMin over intervals and discrete sets

I was playing with ArgMin but I'm not sure how to use it for constrained optimization. For example, ArgMin[x^2, x] returns <...
128 views

### Minimizing expression over symmetric matrices

I'm trying to solve the following maximization problem over space of symmetric matrices A and positive definite H $$R=\max_{A\in S(R^d)}\frac{\text{tr}(HA)^2+2\text{tr}(HAHA)}{\text{tr}(AHA)}$$ So ...
58 views

### FindMinimum diverges

I just enocountered following issue, FindMinimjum explicitly diverges — final result is WORSE than initial supplied conditions. During evaluation of In:= ...
52 views

### Plot global maximum point and differential equation

I have two questions: (1) I found the global maximum point of the following function ...
67 views

### Arrow key problem with mathematica 12 and bash version 5

I want to know if anyone experiences the issue with mathematica-12 with bash-5? I am using the command line interface of mathematica. Now when I do up arrow or down arrow to go to history, it does ...
60 views

### NMinimize cannot be used within RegionPlot

My version of Mathematica (11.1) apparently cannot do NMinimize within RegionPlot. It did work before (!) my last software update. Here is an example from user GioMott having the same (unanswered) ...
44 views

### Find maximum of x given a bunch of constraints [closed]

Trying to find maximum of x given that '''0<=x<=3''' and some other stuff. This works fine: Clear[x, y] FindMaximum[{x, 0<=x<=3}, x] But this does ...