The Stack Overflow podcast is back! Listen to an interview with our new CEO.

# Questions tagged [mathematical-optimization]

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

1,283 questions
Filter by
Sorted by
Tagged with
59 views

### Minimization of objective function 300000 xy [closed]

How could I minimize the following in Mathematic? 300000 xy under the constraints ...
113 views

### How to find the maximum?

I have in mind $$\max\left( \sqrt{(x-1) (y-x)}+\sqrt{(1-x) (7-y)}+\sqrt{(y-7) (x-y)}\right)$$ for $x\geq -2\land x\leq 3\land y\geq 0\land y\leq 11$, of course, taking into account real values of the ...
78 views

### NMinimize in NMinimize …why doesn't work?

I want to use NMinimize in NMinimize. What I want to do is 1) Make and Input the candidate of numbers to func by 1 st NMinimize. 2) replace numbers with the candidate. 3) evaluate and seek the "t" ...
762 views

### Numerical saddle point problem of a function of many variables

I want to find the following saddle point of the function of 10 variables: . I am not able to find the stationary points by setting the first derivatives to 0, so I need do optimize the function ...
214 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 ...
68 views

### Integer linear programming can't find global minimum

I was working with Project Euler Problem 418 using Mathematica and got in trouble. I wrote a function to find the unique factorization triple which minimizes c / a for integer n. ...
83 views

### NMaximize not solving my problem

Check the following, integer problem: ...
50 views

### How to take a point randomly from a region [duplicate]

I want to take some points randomly by the limits above, I had try to use FindInstance method but it always out (0,0) ...
53 views

### Rearrange a symbolic function in order that the result contains a minimum number of SQRT() and CBRT() calculations

I use mathematica for analytically calculating a function, which solves two equations: ...
51 views

### NSolve does not return a value

I'm interested in obtaining the KKT multipliers in a constrained optimization problem. I've checked the NMaximize documentation, but I've been unable to find how to ...
21 views

### Nmaximize with array in ConvexhullArea

I want to find maximum of convexhull area for n points. I try to give a small example (n=4) as follow ...
225 views

### estimation of values using NMaximize over symbolic array entries

I'm trying to generate instances of a dataset that satisfy specific conditions, based on the following equation: Each of four non-zero terms (term 1, A; term 3, B; term 4, C; term 5, D) is a scalar. ...
67 views

### How to extract the minimal value from NMinimize? [closed]

According to the manual, if I calculate NMinimize[x^4 - 3 x^2 - x, x] that returns {-3.51391, {x -> 1.30084}}, I can extract the minimal value -3.51391 using <...
57 views

### L1-norm optimization algorithm crashes kernel on large datasets

I have an A.X-B linear system which I have transformed into A.x-b to be solvable as a linear program using the code below: ...
47 views

### Having trouble with Maximize

The following code doesn't yield any results from Mathematica: ...
145 views

67 views

### How can I optimize plotting the solution to ParametricNDSolve as a function of a range of values of the parameter?

I'm using ParametricNDSolve to find a solution to a set of first order ODEs which have one independent variable, z. The set of initial values contains a function of t. ...
105 views

### Getting error 'InterpolatingFunction::dmval' while trying to find the maximum of an interpolated function

The code I used is ...
35 views

### Minimize keeps running

I'm trying to determine the effect of small changes in one parameter of my problem on the KKT multipliers. The program computes the values of those multipliers (γVec...
43 views

### How to find minima for non scalar-valued [closed]

I want to find minima. My code: ...
39 views

### Finding zero linear combinations of polynomials (numerically)

I have two functions of real variables defined on two compact spaces ...
80 views

### Solve multiple equations and getting solutions [duplicate]

This is my first post here so I'm not really sure how all of this works, but I'll try my best to explain my problem. I'm supposed to solve the equation system ...
160 views

### Formulating a tailor-made Maximum Flow problem in a directed graph

Let a digraph, G, be given, where t[i,j] and a[j,i], respectively, denote transfer capacity ...
53 views

### How to optimize this script?

fx8350, 16Gb ram just need to solve this: 13, 19, 19, 16, 26, 33, 26, 31, 5, 24, 21, 34, 35, 35, 35, 20, 7, 12, 18, 17, 6, 8, 15, 24, 2, 17, 15, 22, 29, 15, 21
109 views

### Programming with Mathematica Syntax - Dunford decomposition

I am always amazed while I am reading some solutions of problems in mathematical problems of this site with Mathematica. For instance, look at the problem 48. Whereas I am writing 100 lines of code ...
58 views

### Find the base vectors of a point set

I have a list of coordinates that fits into a 2D periodic lattice, with some error ( $\vec{R}=n\vec{i}+m\vec{j}+\vec{\varepsilon}$). Is there a way to find the base vectors of the lattice? I guess the ...
165 views

### Speeding up an optimization problem

I have the following code which is working well but for matrices $M_i$ of size $40000\times 4$ the optimization problem takes extremely long. ...
58 views

### AccuracyGoal & PrecisionGoal: how to know which was used to yield the result?

With NMinimize (or many other functions), when an answer is found without any warnings, this means that a certain convergence criterium was achieved. It could be ...
I seek at least one instance of positive fractions $p,q,r$ where $p,q,r \in \mathbb{Q}^+$, for which $$\frac12 (a - 2 b + c)^2 \ge pa^2 + qb^2 + rc^2\quad \forall\ a,b,c \in \mathbb{R}.$$ I used this ...