Questions tagged [mathematical-optimization]
Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.
2,330 questions
0
votes
1
answer
110
views
NMinimize apparently enters an infinite loop
I've stumbled across what seems to be a weird interaction of the NMinimize function.
I'm minimising the function -Log[Sin[2x]] + a Cos[x]^2 for $0 < x < \pi/2$...
0
votes
1
answer
77
views
What is the sense of the {x, xmin, xmax) form when used with NMaximize?
I mainly use the {x,xmin,xmax} form in plotting functions, and I probably assume, if forced to think about it, that it's a hard restriction. Someone recently asked ...
4
votes
2
answers
130
views
Parameter search problem for satisfying an inequality
I am working with a $2 \times 2$ matrix
...
3
votes
0
answers
125
views
Efficiently Finding Optimal Configurations of Lofted Solids
A lofted solid is like a solid cylinder with two different end caps.
A natural set of questions given a lofted solid using two shapes would be if we were to be able to rotate an end around the ends ...
2
votes
1
answer
151
views
Minimising integral of solution found by solving ODE
I am interested in solving a problem that takes the following form. I solve, using some numerical method such as RK4, an ODE of the form
$$
r(v)L(v;\{a_i\})+r^{\prime\prime}(v)=0\,,
$$
where $L(v;\{...
2
votes
1
answer
112
views
Getting wrong using NMinimize to find the minimal eigenvalue
I'm trying to solve 1D Schrodinger equation for radial wavefunctions: p''[r]-V1[r]*p[r]=E*p[r] (where V1[r] is a given effective ...
4
votes
3
answers
391
views
NMinimize behaves strangely for this simple problem
I am looking for a noncentrality parameter for $F$ which makes the CDF closer to .975.
That should be straigthforward, e.g.,
...
1
vote
1
answer
300
views
What are the best publicly accessible AI programs , for writing reliably Mathematica programs?
I've been experimenting for a while with Claude, DeepThink, Copilot and Chat, and all are great for helping quickly beginner programmers with bad memory like me, but they also waste a lot of your time ...
5
votes
1
answer
239
views
SemidefiniteOptimization function claiming no solution when a solution does exist
The following code
...
0
votes
0
answers
74
views
Finding Hopf bifurcations by minimizing distance of eigenvalues to the imaginary axis
It would be nice to find Hopf bifurcations in Mathematica by minimizing distance of eigenvalues to the imaginary axis. Since I always start from a stable fixed point, it suffices to NMaximize the ...
1
vote
0
answers
65
views
Numerical optimization on PredictorFunction fail with region specification but not constraint specification
Problem:. Numerical optimization on learned PredictorFunction do not seem to behave the same for constraint and region specifications, and the latter fail to ...
2
votes
1
answer
166
views
Why does NDSolve fail or slow down when simulating a driven JC model with time-dependent terms, even when the drive is off?
I'm performing a numerical check of an effective Hamiltonian transformation applied to a driven Jaynes–Cummings (JC) model. After applying a rotating frame transformation and rotating-wave ...
0
votes
0
answers
71
views
Bootstrapping with sdp solver in mathematica doesn't find the allowed eigenvalues properly
I am trying to bootstrap the harmonic oscillator in Mathematica using its built in SDP solver. I have the following code
...
0
votes
0
answers
215
views
$||Ax-b||^2$ vs $Ax=b$ in QuadraticOptimization
I'm solving underconstrained $Ax=b$ with additional constraint that entries of $x$ are non-negative.
This can be done with QuadraticOptimization by
putting $||Ax-...
3
votes
0
answers
68
views
Implementing DC Decomposition of Nonconvex Polynomials Using Algebraic Techniques (Hall's Formulation 5.6) in Mathematica?
I'm working on implementing a difference-of-convex (DC) decomposition for nonconvex polynomials, following the algebraic approach described in Georgina Hall's thesis "Optimization over ...