# Tagged Questions

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

37 views

### From “NMinimize::nosat: Obtained solution does not satisfy the following constraints within Tolerance”, can prove something?

I got a very very complicated function G[r1,r2,F1,F2] to minimize. It has four variables, r1,r2,F1,F2. When I introduce the ...
40 views

### How to set step size in FindMinimum?

My initial guess is very close to the solution. So I want step size is to be very small. Is there anyway to control the step size in the findminimum function?
43 views

### How to solve a constrained minimization problem?

I unsuccessfully tried ClearAll; Minimize[x^(8/5) + y^(8/5) + z^(8/5), x*y*z + x^2 + y^2 + z^2 == 4, {x, y, z}] No output during few hours. I am interested in ...
59 views

### “PostProcess” and “Tolerance” in DifferentialEvolution? [closed]

What is "postprocess" option in DifferentialEvolution method (for instance when using ...
54 views

### Step Monitor option in DifferentialEvolution

Using the "Step Monitor" option what exactly do I read? Does it show me the "best solution" for each population? Or does it show me each search point in the population? Also is there an integrated "...
177 views

Define: ...
240 views

### How to describe the convex hull of a set of points as an implicit region for optimization?

Last edit: 2016-05-03 A.G.'s answer was the one helped me the most, see explanation at the end of this question. Original question In Mathematica you can create out of a set of points in 2D and 3D ...
35 views

### Minimize a function containing a file exportation

I have the following problem: ...
78 views

### Problems with NMaximize [duplicate]

The Objective function I would like to Maximize takes less than a second to evaluate. There are several packages needed to evaluate it, so I'm not showing it here. ...
41 views

### Time limit NMaximize [closed]

Is it possible to time limit NMaximize? It is taking so long to evaluate my minimum, that I would like to see if it is doing what I expect it to do. So I was thinking of time limiting it in order to ...
60 views

### Minimize with Interval restriction

If for instance I have a problem of this sort: ...
36 views

### Is it possible to get the error estimates of predicted values computed by FindMinimum using the Levenberg Marquardt method?

I use the LevenbergMarquardt method of the FindMinimum function to minimize a residual function (mathematical-optimization). This residual function is computed from experimental data and the solution ...
46 views

### Check if interpolated function passes through a specified region

Is there an efficient way to check if a curve that was obtained as an Interpolating Function (from solving differential equations numerically) passes through a given region? I am solving for two ...
71 views

### Pareto optimal fronts using internal function?

Reading this question: How do I estimate the Pareto front in my multiobjective optimization problem? I found @Daniel Lichtbau's interesting answer. Yet I don't know how such an "internal function" ...
123 views

### Optimize a parametric matrix to get a lowest possible eigenvalue

This question is a followup of Plot the lowest eigenvalues of a parametric matrix Now I can get the lowest eigenvalue LowEign(t) of the matrix for a given t numerically. When I plot the LowEign ...
100 views

### Can I hold a condition in NMaximize/NMinimize?

I'd like to use NMaximize/NMinimize with the condition ...
168 views

### Use NMinimize instead of FindFit for constrained search (of coefficients)

(My problem is more complex, but let us formulate it through this example) I am trying to find the best polynomial approximation to the following function ...
229 views

### How do I estimate the Pareto front in my multiobjective optimization problem?

I need to minimize a function of two parameters that gives two "stress" outputs {A,B} = f[tau,mu]. How do I estimate (even roughly), the Pareto front for this ...
105 views

### Find the minimum element of a row of a matrix and its column index for each row

I am trying to find the minimum value of a row of a matrix and its corresponding column. Please run the code below. OptV is the matrix that I would like to create which must give the output of the ...
55 views

### recursively structuring a multivariate numerical optimization

Suppose that I want to partition the unit interval [0..1] into four subintervals whose max length is as short as possible. I can ask Mathematica to: ...
48 views

### Value Iteration (Recursive iteration) to Minimize (Optimize) a Function

I have a function that I call as "Value". I am trying to find the minimum of this function and this function is a function of 4 other functions. One of these four functions is recursive based on the ...
495 views

### How to find local minima of data using PeakDetect

One of the great new function in v10 is PeakDetect. It can detect peaks (local maxima) according to desired sharpness as shown in this example: ...
1k views

### Finding all maxima and minima of a function

To find all (global and local) extrema of a function in $\mathbb R^3$, I have written the following. Example function: ...
59 views

### Verify angle pi/4 maximizes launch range [closed]

I'm solving the equation of motion for a projectile in the x, y plane and got this: R = v0^2 sin(2 theta) / g where R is the range of how far the object will ...
115 views

### Find value of parameter such that the maximum value of a function satisfies a condition

I have defined a function x3 as follows: ...
50 views

### best way for finding approximate root of monotonic sawtooth like function

First I will generate such kind of monotonic sawtooth like function called func ...
120 views

### A case of complicated fitting of multiple datasets

I've stumbled upon a difficulty while trying to do some fitting which may be called sorta complicated. I'll try to introduce my problem step by step. To begin with, I have a number of datasets ...
106 views

### Maximize a variable in NSolve Function

I want to solve a set of trigometric coupled equations with the NSolve funcion while at the same time trying to maximize a variable which has to be real and between ...
95 views

### LinearProgramming returns an invalid null solution that apparently doesn't satisfy constraints without any warning

Bug introduced in 10.3.1 or earlier and persisting through 10.4.1 While searching to answer the question Solving the magic backyard puzzle with MMA at some time I composed a set of arguments ...
330 views

### Indicate minimal path sum

Described on the page: http://www.mathblog.dk/project-euler-81-find-the-minimal-path-sum-from-the-top-left-to-the-bottom-right-by-moving-right-and-down/ It is an example of the solution indicated in ...
67 views

### find all global minima (there is more than one global minimum)

I have a function with two global minima, I would like mathmatica to find both of them. for example I have the function: and I'm trying to find both global minima using: ...
266 views

### Minimize sum of array elements subject to conditions

I have array where each point at different times are shown parameters ...
229 views

### Using the Levenberg - Marquardt algorithm to minimize a user-defined function

I wrote a function in Matlab that optimizes another user defined function using lsqnonlin with 'levenberg-marquardt' option. Now, I'd like to use the first to ...
18 views

### Using function calls as arguments of the objective function in Nminimize

I am trying to run NMaximize as follows: ...
423 views

### Numerical optimal control

I was hoping to tackle optimal control using Mathematica in order to learn how I can use Mathematica's built in numerical integration and optimization functions together in order to solve an optimal ...
42 views

### Using ParametricPlot to Display result of Maximize

One would expect that: Plot[f[x],{x,0,1/2}] and ParametricPlot[{x,f[x]},{x,0,1/2}] would always yield identical outputs. ...
98 views

### How to Find minimum and maximum using FindMaximum[] and FindMinimum[]

this is the data that i use to plot. data_damped_osccilation this is my code so far, however it still give me error ...