Questions tagged [mathematical-optimization]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
130 views

Clebsch Gordan coefficients

I'm trying to compute various sums which contain some CG coefficients, where the sum runs over the indexes m1,m2,m corresponding to each of the three angular momenta j1,j2,j. The thing is that when I ...
0
votes
1answer
84 views

Problem with solve

I need to solve this function, but I cannot copy mathematical function, so I display in picture, sorry ...
1
vote
0answers
71 views

Memory leak in simple program

I am trying to solve a simple optimization problem on the sphere, and for some reason, I got some memory leak that I am not able to solve. To decompose the problem in step, what I wan to do is Take ...
2
votes
0answers
46 views

How do I use NMinimize to solve equations obtained using NIntegrate? [duplicate]

I wish to minimize following equation with respect to variables $h,p,q,t$: $\qquad f(h,p,q,t)=\int_0^1 \int_0^1 \frac{dx\,dy}{\sqrt{h^2+x^2+y^2-2\,x\,y\space cos(p)+2\,h\,y\,cos(q)-2\,h\,x\,cos(t)}}$....
0
votes
1answer
99 views

What is wrong with my NMinimize code? [closed]

I don't know how to write the code to find Mu1 and Mu2. Can you help me Please?. This is what I tried.
0
votes
2answers
42 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 ...
0
votes
4answers
204 views

How can I solve this transcendental equation in Mathematica?

I want to solve the following equation $\frac{Sin[a[x]]}{a[x]}$ - x = 0, for x in range {0,1}. I tried the FindRoot method but it gives only one root. I want to find the roots for this equation for ...
0
votes
2answers
155 views

How to find maximum from list or table

I have some result in list form and after I build the graph I have: As you can see on the graph there is a spurious peak at the beginning. So when I tried to find maximum peak, I receive value of ...
1
vote
1answer
85 views

How do I separate all local maxima and local minima of my function?

This question (and the first answer in particular), teaches us how to find all the local maxima and minima of a function. My question is: how can I separate the maxima from the minima? My goal is to ...
1
vote
0answers
49 views

Finding symbolic solution to constrained optimization question

The code below is my attempt to solve a constrained optimization problem: ...
0
votes
2answers
187 views

How to find this global minimum?

This is a problem from a Russian school math olympiad: Minimize[(5 x^2 + 8 x*y + 5 y^2 - 14 x - 10 y + 30)/(4 - x^2 - 10 x*y - 25 y^2)^(7/2), {x, y}] The above ...
12
votes
1answer
307 views

Packing arbitrary shapes

I'm looking for a general method of packing any set of 2D glyphs. For example, say I had 30 randomly transformed english characters: ...
3
votes
1answer
67 views

Minimize incorrectly reports: There are no points that satisfy the constraints { }

I've been trying to minimize this: ...
-2
votes
1answer
79 views

Optimization problem [closed]

I have the following function ...
-1
votes
2answers
178 views

Solving inequality using matrix form condition

*answer is $x=(10,5)^T$ (a,b) is inner product. x and y is 2d vector. Find $\bar{x}$ within the area by the systems of inequality,$K(x)$ s.t. About inner product of vector F(x) and (y-x),$F(\...
1
vote
2answers
73 views

Numerical Minimization of Large Expression

I want to minimize a function which contains ArcTan functions. The function is also very complicated. I have the following code. ...
2
votes
1answer
85 views

How to maximize just with respect two parameters out of four?

There are some posts explaining how do we maximize a function of two parameters with respect to one of those and how to plot the resulting function: Plot a function after taking the supremum with ...
11
votes
1answer
334 views

Minimizing with differential evolution

A differential evolution algorithm is given here. I would like to get this kind of animation. I thought I could use NMinimize, given ...
3
votes
1answer
101 views

How to provide an RNN various type of inputs?

I'm trying to build an RNN in Mathematica. My window is only 2 but the variables are of different types: ...
1
vote
0answers
49 views

Export system of inequalities in MPS format

I am interested in the .MPS format, usually used in Linear Programming problems (see here). When importing a file in the .MPS ...
1
vote
2answers
68 views

Trouble finding a maximum of a constrained multivariate function

I have a multivariate function that I seek to maximize (ideally symbolically): The function has the form: $\frac{(-j*a)}{8 (-(b/2) - j (c-d-e)) ((j*b*c)/2 - (j*b*d)/2 + c*d - d^2 + a^2/4))}$ (...
1
vote
1answer
127 views

Minimize is running forever

My object function is $\frac{4 d k (1 - 2 r) r + k^2(3 r-1)r + d^2 (1 + r (6 r-5))}{ 2 (1-r)^2 r} + q* \frac{d^2 (2 - 3 r) + 2 d k ( 2 r-1) + k^2 (1 -(3 - r) r)}{(1-r)^2}$. And I'm trying to find ...
8
votes
0answers
122 views

StableMarriage vs. FindIndependendEdgeSet: How to use the procedure FindIndependendEdgeSet as a Gale-Shapley algorithm?

From Help, the procedure StableMarriage was an element of the Combinatorica, but it is available in the built-in ...
4
votes
2answers
131 views

FindMaximum ignores MaxIterations option

I'm trying to find a maximum of interpolated function inside a particular mesh cell. However, for some cells the process is very slow and it returns a warning: FindMinimum::eit: The algorithm does ...
11
votes
3answers
581 views

Minimum energy path of a potential energy surface

I have calculated the energies of a molecule by varying two parameters (Data points are here data). I want to find the minimum energy path from the point (180.0, 179.99, 21.132) to (124.5, 124.49, 0) ...
0
votes
1answer
41 views

Why am I getting errors from NMaximize? [closed]

I tried to use the function that is given in 1 in order to get the FWHM of some expression I got from solving a system of linear equations. This is the function for calculating FWHM: ...
1
vote
3answers
106 views

3D Plot the result of local Minimize with varying parameter values

I'm faced with the following minimization problem: Find $r\in[0,1]$ that minimizes $\frac{d^2+k^2 (1-2r)r}{2(1-r)r}$, which is bounded by 0 and 1. In addition, $k<d$ holds and each of $d$ and $k$ ...
0
votes
1answer
47 views

parameter fitting for a trascendental equation model

I want to solve the following problem with Mathematica: I have a physical model relating the $y$ variable with the $x$ variable given by the next expression: $$y=...
2
votes
3answers
187 views

Finding minimum from ListPlot

I have Table with 10000 elements in it and I plot a graphic using ListPlot. I need find minimum in graph. Here is a .txt file with data. I tried to use ...
0
votes
1answer
161 views

Animate particle's trajectory

Does anyone know how to animate the trajectory of a particle, but make sure before the particle reaching a certain spot, there's nothing. I mean I want to make an animation that look like https://en....
1
vote
1answer
106 views

Problem with constraints of NMaximize

I am using NMaximize to solve the following problem. ...
1
vote
0answers
103 views

Help in minimizing a cumbersome function

I'm trying to minimize a function in order to find a slope critical heigth on a solope stability analisys. The functions taken from (Chen 1975) are the following: I added all the equations to mma but ...
0
votes
1answer
50 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
1answer
59 views

Minimization of objective function 300000 xy [closed]

How could I minimize the following in Mathematic? 300000 xy under the constraints ...
2
votes
3answers
115 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 ...
-1
votes
1answer
91 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" ...
1
vote
0answers
75 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. ...
1
vote
3answers
88 views

NMaximize not solving my problem

Check the following, integer problem: ...
1
vote
1answer
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) ...
0
votes
0answers
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: ...
0
votes
2answers
53 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
90 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 <...
2
votes
1answer
47 views

Having trouble with Maximize

The following code doesn't yield any results from Mathematica: ...
1
vote
0answers
66 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: ...
1
vote
2answers
184 views

The Levenberg-Marquardt method for nonlinear least squares curve-fitting

There is a function with unknown coefficient $a$, $b$, $c$ $$t(k)=\frac{1}{a b}(c-arcsinh(\sinh(c \cdot e^{a\cdot k\cdot 2\pi}))$$ I have a measurements $t_k$ from observed data. $(t_1 =0.4,t_2 =...
1
vote
2answers
113 views

Is it possible to find a closed solution for this problem?

I need to find the global minimum of the following function: ...
0
votes
1answer
105 views

Minimizing a function problem

I'm solving an elastoplastic problem of the Ducker Prager model using the closest point projection method, which consists of minimizing a distance between a trial stress and the yield surface in the ...
2
votes
0answers
278 views

How to find which automatic method is used by FindMinimum?

This question has already been addressed here and here. The second link consists of an answer by halirutan, which clearly states which method is used in which situation. However, while trying to check ...

1 3 4 5 6 7 28