A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

# Questions tagged [mathematical-optimization]

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

1,356 questions
Filter by
Sorted by
Tagged with
154 views

### How to find alignments of interlocking shapes?

I'm searching for the ways to align interlocking shapes, that is, finding the locations and rotations that maximize the arc length at which they touch. For simplicity, I'm assuming 'shapes' are one ...
335 views

### What is wrong about Abs[x]-a? Is it a bug?

Why is the Out not {1 - a, {x -> -1}}? ...
141 views

### Steiner Trees for Unit Polygons?

I know this is a longshot, and it's a rather broad question, but hopefully someone can help. Is there a simple or fast way to find Steiner Trees for unit polygons using Mathematica? By unit polygon, I ...
165 views

### Why don't optimization functions like FindMinimum work with functions like BSplineFunction? [duplicate]

Take a simple BSplineFunction and evaluate it at 0.25. ...
208 views

### Easy FindMaximum returns a wrong answer

FindMaximum in region is a new function in mma10,but when I tried the following example: ...
292 views

### Using least independent rectangle area to separate every point

Description I want to add vertical line and horizonal lines between data to make every point have an independent rectangle area. In addtion, every independent rectangle has a number $1,2,3,4,5,\ldots$...
350 views

### Numerical problems with calculation of function

I have a problem with a calculation which I try to do with Mathematica (8.0.1). I have the following function which describes a cone (with half opening angle theta)...
178 views

### Maximizing efficiency of a power-tower (tetration) calculation

I'm working on a power tower $\displaystyle z^{z^{.^{.^{.}}}}$ and wish to maximize the efficiency of my algorithm to compute a cycle map. This is a color-coded diagram of the cycle period of each ...
370 views

### How is INTEGER linear programming implemented in the Mathematica LinearProgramming function?

I was surprised to see that, for d = 1000, b = 800, Mathematica solves an integer linear (LP) program such as ...
123 views

### Maximise output issue

When I execute the following command, I get a numerical output as follows: ...
540 views

### Mathematica vs Sigmaplot (Non LinearModelFit)

I asked a question in a previous post that was closed because "The title of the question is not correct and the issue here is too trivial to help anyone later". https://mathematica.stackexchange.com/...
213 views

### Tremendous bug using EstimatedDistribution (using NMinimize) in v8.0 and v10.2

Let's define F4 and estimate the distribution of the data: ...
345 views

### Simulated Annealing, SearchPoints and InitialPoints options set at the same time

I have a function that needs to be minimized. Since the function depends on real-time data (which is fetched every few hours, and the function is redefined according to the new data), I have to run ...
393 views

### Speeding up the non-negativity algorithm for multilinear function with interval probabilities?

The algorithm is a branch-and-bound algorithm that calculates the non-negativity of a multilinear function with interval probabilities. The lines 9-11 has an optimization that is explained on the 10-...
58 views

### Status of DualLinearProgramming

DualLinearProgramming is referenced in this tutorial tutorial/ConstrainedOptimizationLinearProgramming It exists in ...
86 views

### Caveats of LinearProgramming on Integers domain

When using LinearProgramming with the Integers domain, Mathematica issues the following warning: ...
114 views

### Optimize a network topology?

I'd like to know if one can use optimization function like Maximize[] or BayesianMaximize[] to optimize the hyper-parameters of ...
327 views

### Is there an analogue of Evaluated->False (in FindRoot) for FindMinimum?

I guess functions like FindRoot, FindMinimum, etc puts the estimation number into the expression, and then do other calculations....
227 views

### How to perform Bayesian optimization with Mathematica? [duplicate]

Does Mathematica have any Bayesian optimization methods for learning hyper-parameters? Practical Bayesian Optimization of Machine Learning Algorithms Jasper Snoek, Hugo Larochelle and Ryan P. ...
418 views

### Custom Methods for NMinimize/NonLinearModelFit

Is there a way to write custom methods for NonLinearModelFit or NMinimize? To give background, I currently have a batch of code ...
90 views

### Listable compiled functions used in NMinimize [duplicate]

This is an example from MMA: cListable = Compile[{x}, (x-1)^2, RuntimeAttributes -> {Listable}] In case of single entry: ...
384 views

### Problems extending NelderMeadMinimize into 2D

Update The eventual route I followed was to adapt a version of the NM-simplex written in C and link to it with MathLink. Once I've tested this out fully I'll post it here. I've been playing around ...
459 views

### Simulated Annealing Parameters and Results [closed]

I am using SimulatedAnnealing method for a simulation based optimization problem and was wondering if someone can enlighten me on the following features: Is there ...
202 views

### Issue with FindCurvePath

I have a problem with the function FindCurvePath. In some cases it crashes the Mathematica 9 Kernel. Here an example, where it crashes the kernel: ...
799 views

### Minimal overlap area of circles

I have 20 points in the 2D plane with $(x_i,y_i)$ coordinates. I want to use Mathematica to optimally distribute 10 circles with equal radius of a given positive value $R$, i.e. to determine with the ...
177 views

### For a polynomial F with dependence on a parameter beta, find the value of beta for which F has 2 positive roots

Good morning, I have the following polynomial with degree 4 and its coefficients are quadratic functions of a parameter beta: ...
192 views

### Finding the maximal t at which u[x,t] == 1?

Given the smooth function u[x,t] on a domain, how do I find the maximal t at which ...
849 views

### Finding minimum and maximum of implicit functions

The equations of the system are ...
2k views

### Can't find maximum of a function on a region

for h=0.2 I'm trying to find the maximum value of (-h^2/3)*(-1/x^2) subject to ...
419 views

### Optimum number of cog teeth for two step helical gearbox

Note: Cross-posted at http://community.wolfram.com/groups/-/m/t/137895?p_p_auth=8QnKtT9I. I am to design a two step gearbox. The first step is to choose the number of teeth in each cog wheel in ...
743 views

### What alternative notation of subscripts/superscripts that are also treated as SYMBOLS in Mathematica?

I tried to avoid using the subscript $A_0$ in the Module, and get an error with $A$. ...
572 views

### Minimax optimization in Mathematica

Mathematica has functions for constrained nonlinear maximization or minimization of functions, via FindMinimum and FindMaximum ...
1k views

### FindMinimum works only if you know the answer

I am processing SNe Ia data and using FindMinimum to try and extract two values: t1 and a0. The FindMinimum value works only if I supply values that are close to the answer. If I provide no starting ...
282 views

Writing: ...
103 views

### Selection of lists among list of lists to maximize coverage and avoid repetitions

There is a list of 'list of consecutive integers'. There could be a single integer as well. Example list: ...
3k views

### Finding peaks of data

I want to find peaks in my data. My code in a reduced form so far: ...
1k views

### Extrema of a function of three variables

To identify and classify the critical points of the function $f(x,y,z)=x^3+xz^2-3x^2+y^2+2z^2$, I used the Hessian matrix method. ...
488 views

### Visualizing maximum value of $x^TAx$

Consider the matrix $$A=\begin{bmatrix} 3 & 2 & 1\\ 2 & 3 & 1\\ 1 & 1 & 4 \end{bmatrix}$$ which leads to the quadratic form x^TAx=3x_1^2+3x_2^2+4x_3^2+4x_1x_2+2x_1x_3+...
266 views

### need help to enter the orthogonal sign, the upside down T.

I have search on Google and never came across any idea how to enter this damn sign. would anyone give me some hint?
320 views

### Optimizing a rank 3 tensor

Assume we have the following elements \begin{equation} F_i{}^j \;and\; S_{ij}{}^k, \end{equation} which represent the components of tensorial objects of ranks 2 and 3 respectively, with Complex ...
214 views

### Why is this minimization with Boole functions failing?

I am running this command in Mathematica 8.0.4.0: ...
261 views

### Getting message Maximize::ztest: — how should I deal with it?

I am working on a maximization problem of the form Maximize[{f, cons}, {x, y, ...}] Mathematica outputs a warning and a result. The warning is Maximize::ztest:...
444 views

### How can I force Mathematica to not symbolically evaluate a function used for NMaximize without redefining it?

As per the title, consider the following trivial example: f[x_] := (Print[x]; -x^2 + 10 x) NMaximize[ f[x], x ] (* x *) (* {25., {x -> 5.}} *) Now, as the ...
1k views

### Fitting one function to another

I'd like to see how close I can fit an exponential function to a cosine function in the domain of $\;-\frac{\pi}{2}$ to $\frac{\pi}{2}$ in the least squares sense. ...
77 views

### Approximate strictly positive solution to a linear set of equations?

Consider a positive matrix M and a positive vector b, e.g. ...
1k views

### How to fit parameters in a system of coupled differential equations

Problem description: I'm studying a chemical reaction that can be modeled by a system of coupled differential equations, and I want to use measured data to determine the parameters that appear in the ...
309 views

### How to obtain better speed performance with NMinimize over a complicated objective function?

Edit.1: I've rewritten the question in order to make it more accessible for troubleshooting / debugging / maintenance purposes, as suggested in the comments. I apologize for any inconvenience. I'm ...
372 views

### How to transform Maximize[…] to LinearProgramming[…]?

I have an optimization problem that looks something like this: Maximize[{1+x+3*y,0<=x<=1 && x+2*y<=4},{x,y}] Now, I want to use Linear ...