Skip to main content

Questions tagged [mathematical-optimization]

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

1 vote
0 answers
22 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 ...
Teg Louis's user avatar
  • 527
2 votes
1 answer
136 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;\{...
user12588's user avatar
  • 625
2 votes
1 answer
110 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 ...
Alexander Malyshev's user avatar
4 votes
3 answers
385 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., ...
Denis Cousineau's user avatar
1 vote
1 answer
203 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 ...
florin's user avatar
  • 2,338
5 votes
1 answer
236 views

SemidefiniteOptimization function claiming no solution when a solution does exist

The following code ...
youthdoo's user avatar
  • 605
0 votes
0 answers
72 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 ...
florin's user avatar
  • 2,338
1 vote
0 answers
64 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 ...
Joshua Schrier's user avatar
2 votes
1 answer
164 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 ...
gang liu's user avatar
  • 165
0 votes
0 answers
70 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 ...
Knickers5637's user avatar
0 votes
0 answers
213 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-...
Yaroslav Bulatov's user avatar
3 votes
0 answers
67 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 ...
Tuong Nguyen Minh's user avatar
3 votes
2 answers
450 views

Double optimization - function defined through `Module`

I am solving an optimization problem where there is an energy defined with some functions and some fixed parameters. I define this minimum as function of two variables and want to search in the space ...
Daniel Castro's user avatar
3 votes
4 answers
321 views

How can I reduce the time to get a list of triples?

I used Mathematica to generate a list of triples of the form $(a/b,c/d,m/n)$, such that $3<a/b<c/d<m/n<10$, with $3≤a,b,c,d,m,n≤15$.I tried ...
TTTT2025's user avatar
  • 167
4 votes
2 answers
576 views

Knapsack problem

Say I have the following number 499013 from which I must find a list with the following characteristics: the list has the same length as the binary list of the given number it has the same value of ...
Giorgio's user avatar
  • 391

15 30 50 per page
1
2 3 4 5
156