Skip to main content

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
0 answers
23 views

Area of a quadrilateral with only sides [closed]

Well, this is very simple Question but I am not good with Maths. Can someone suggest me what is the area of an irregular quadrilateral with sides measurement as A, B, C and D. Here A < B < C <...
Creative Learner's user avatar
7 votes
2 answers
365 views

How to find stationary points graphically?

I have the following Mathematica code: ...
codebpr's user avatar
  • 2,423
0 votes
1 answer
33 views

Find the function of decision variable

I have a question regarding solving an equation in Mathematica. I want to find the functions of p and T from the equation shown in the attached image in order to determine the optimal solution(p and T ...
Icebear's user avatar
1 vote
1 answer
93 views

What is a "small" nonlinear programming problem?

This page https://reference.wolfram.com/language/tutorial/ConstrainedOptimizationComparison.html says "Even for local optimization, it may still be worth using NMinimize for small problems" ...
Alan's user avatar
  • 21
0 votes
1 answer
99 views

Visualization of Minimization Problem

I am trying to visualize the objective function (f1), the constraint (isoq), and the optimal solution. The optimal solution is at the tangency of both graphs. I can plot the constraint, but the ...
Tom's user avatar
  • 301
0 votes
0 answers
29 views

Calculating time too long for $A\succeq I$, minimize $tr(A)$ when $A$ is of dimension 4

Suppose $A_0$ is a 4*4 matrix, the constraint is $A_0\succeq I$, which means $A_0-I$ is semidefinite positive. The target function is maximum of 1-tr($A_0$), and the answer is -3 when $A_0=I$. However,...
qmww987's user avatar
  • 101
4 votes
2 answers
592 views

Make two disks just touch

I have two disks, that I want to make touching each other. One disk is fixed, the other can shift along the x axis. The shift should be determined to make the disks intersecting in one point (or have ...
Eisbär's user avatar
  • 1,570
0 votes
1 answer
69 views

Maximization subject to constraints

I want to solve for parameters and not specific values. ...
CarS's user avatar
  • 1
0 votes
0 answers
64 views

Mixed Integer Quadratic Program (MIQP): Kernel crashes during computation

I am solving an optimal placement problem using MIQP (Mixed Integer Quadratic Program, using the QuadraticOptimization function WM version 14). The objective ...
Lavr's user avatar
  • 1
2 votes
1 answer
261 views

How Can I Relax a Molecule in Mathematica?

I have a molecule in Mathematica. It consists of around 70 atoms, but let us for simplicity assume that we only have four atoms: ...
flg's user avatar
  • 21
1 vote
1 answer
86 views

How to speed up generating and filtering large lists of numbers?

I have the following code where I brute force search for two variables. list gives a list of 3 dimensional vectors, say {x,y,z}. ...
Dotman's user avatar
  • 476
1 vote
1 answer
83 views

Separation of variables

Is it possible to replicate the same procedure of placing the functions that depend on $r$ on one side of the equation and on the other side leave the equations that depend on $\theta$ in Mathematica? ...
Dayzk's user avatar
  • 147
0 votes
2 answers
102 views

Fixed coordinate is shifting in each frame of the animation

I am trying to animate a rotating coordinate system around fixed cartesian coordinates. The fixed coordinate system keeps shifting in each frame as the rotating coordinate system rotates. I am ...
SanGu's user avatar
  • 47
0 votes
1 answer
98 views

Finding the minimum of a multivariate function

I have a multivariate function defined by f[c_] := (1/2) . Transpose[c] . (G[c] + IdentityMatrix[n]) . c - Transpose[c] . M where ...
SpeedForce's user avatar
0 votes
0 answers
42 views

Formal solution to large system of equations using Reduce

I'm trying to solve a large system of equations (there are 12 equations with 12 complex variables, hence I'm expecting to be able to write 12 real components as functions of the remaining). I tried to ...
Fredrigo6's user avatar
0 votes
0 answers
31 views

Getting better answers by smaller working precision?

I have the following code ...
Dotman's user avatar
  • 476
0 votes
1 answer
47 views

NMaximize doesn't satisfy constraints

I have the following code; ...
Dotman's user avatar
  • 476
0 votes
0 answers
42 views

Optimisation fails / not evaluating when a if statement is included in the problem

Have an optimisation problem which I recently added an IF statement. Optimisation fails (or partially evaluated in my longer code) when the section in (**) is included. Can someone please explain why -...
legendary kaya's user avatar
4 votes
0 answers
52 views

Find perspective projection matrix under constraints

I have taken a photo (with a rectilinear lens) of a house's outside wall that sits on top a roof, from which I wish to take measurements from. However, to do so I would need to correct the perspective ...
小太郎's user avatar
  • 223
0 votes
1 answer
69 views

Find the minumum value of an expression [closed]

I am trying to find the minimum value of this expression satisfying the below condition, but this is not leading into a solution: ...
Steve237's user avatar
  • 437
5 votes
2 answers
182 views

SpherePoints problem

Cited from https://reference.wolfram.com/language/ref/SpherePoints.html?q=SpherePoints SpherePoints[n] gives the positions of n uniformly distributed points on the ...
azerbajdzan's user avatar
  • 19.7k
1 vote
0 answers
91 views

Wolfram Mathematica does not work at all [closed]

I have been using mma for years. But after using quit kernal or trying to set default values, mma suddenly stops working. It can not plot sin[x] , evaluate ...
sixpenny's user avatar
  • 149
2 votes
2 answers
120 views

How can I find minimal modulus of $z^2 - w z - 4$?

Let $z$ and $w$ be two complex numbers satisfying conditions: $|z| = 2$ and $|w i - 2 + 5i| = 1.$ How can I find the minimum of $|z^2 - w z - 4|$? I tried with setting $z = a + b i$ and $w = x + y i$: ...
minhthien_2016's user avatar
2 votes
2 answers
98 views

Can Mathematica compute the maximum as a function of parameters?

I have the following function: $\frac{s}{e^2}(e - s)^\alpha$ Where $e \in (0, 1)$ and $s \in (0, e)$. I want to maximize this function with respect to $e$ and $s$. Obviously the maximum value will ...
Ayush's user avatar
  • 21
2 votes
2 answers
62 views

NMaximize not giving the global maximum of SmoothKernelDistribution of 2D data

...
Unicorn's user avatar
  • 23
8 votes
3 answers
554 views

Fitting a disk in a non-polygonal region

...
Syed's user avatar
  • 55.7k
0 votes
1 answer
55 views

How to plot points on a graph curve under logarithmic coordinate axis

I am trying to draw a curve and set a special point based on the logarithmic abscissa, as shown in the following example. The function is 1/(1+(RCw)^2)^0.5. ...
Yao Li's user avatar
  • 111
3 votes
1 answer
51 views

How to disable add a hyperlink with "https" prefix when type shortcut Ctrl+Shift+H

I tried to add a hyperlink to the text using the shortcut Ctrl+Shit+H to open the Zotero application; but every time MMA notebook adds the "https" prefix by default, and can only be ...
Yao Li's user avatar
  • 111
2 votes
1 answer
92 views

Speeding up the nested NIntegration consisted of `Exp' and `Bessel' functions

I got stuck with optimizing the nested numerical integration of function with a high number of Bessel functions (first and second kinds) summed and several exponents. I will appreciate any suggestions ...
seva011's user avatar
  • 316
1 vote
1 answer
77 views

ParametricNDSolveValue, NMaximize: Dealing with complex results in maximization problem

I analyze a system of differential equations in several variables including mus[t], mui[t], and w[t]. Time runs from t=0 to t=T. The two initial values mus[0] and mui[0] can freely be chosen; their ...
beginners's user avatar
1 vote
3 answers
136 views

Maximum value of a constant in a function [closed]

I'm trying to find the maximum $B$ of the following function: ...
Dayzk's user avatar
  • 147
3 votes
2 answers
129 views

FindMaximum, error in solution

The problem cannot be solved; the FindMaximum function throws an error/warning: FindMaximum::cvmit: Failed to converge to the requested accuracy or precision within 10000 iterations. I tried ...
Vladimir's user avatar
  • 327
0 votes
0 answers
43 views

Why is `Minimize` function not working when expression has parameters and trigonometric functions?

I have been trying to minimize a simple function using Mathematica 13.3 $$\frac{4}{2} N \sin ^2\left(\frac{\theta }{2}\right) \left(\left(\frac{N}{2}+1\right) \sin ^2\left(\frac{\theta }{2}\right)-1\...
Uranium238's user avatar
2 votes
5 answers
264 views

How to find the minimum value of the absolute value under this trigonometric function relationship?

Given f[x_]=2Sin[x](Sqrt[3]Cos[x]-Sin[x]), and f[x1]f[x2]==-3, find the minimum of Abs[x1-x2]...
csn899's user avatar
  • 4,351
3 votes
3 answers
184 views

Find maximum and minimum

I have been trying to find the max and minimum values and make it to a list. I have been using some of the previous forms and it doesn´t work.This is my function: ...
wijjoha24's user avatar
-4 votes
2 answers
222 views

How to solve this geometric problem with Mathematica?

I try to solve the following problem, making use of 14.0 on Windows 10 Let a triangle $\Delta$ (a contour with its interior) be chosen in the unit square $S$. To prove that the closure of the ...
user64494's user avatar
  • 27k
0 votes
1 answer
63 views

How can I find minimum of the expression $y - 5 x$ knowing that $y \log _{3}(3 x+y+9)=\left(x^{2}+3 x+y\right) \log _{3}(x+3)$?

I am trying to find minimum of y - 5 x knowing that y Log[3, 3 x + y + 9] == (x^2 + 3 x + y) Log[3, x + 3], x >= 0, y >= 0...
minhthien_2016's user avatar
0 votes
0 answers
27 views

Nested optimization leads to conflict with constraints in inner problem

In this nested optimization problem something is going wrong in the step when I substitute u1op[x_] for w1 in <...
Recallme's user avatar
6 votes
1 answer
407 views

Finding an ellipse of minimum area that encloses a set of points

Is there a built-in function or set of functions in Mathematica that can take a set of points in the x-y plane and determine the ellipse of minimum area that contains all of the points? I am sure ...
BioPhysicist's user avatar
  • 1,134
4 votes
1 answer
136 views

Findroot :unable to find a solution that meets the convergence criteria

The stationary solutions of the Klein-Gordon equation refer to time-independent solutions, meaning they remain constant over time. For the non-linear Klein-Gordon equation, you are discussing:$$\frac{...
Athanasios Paraskevopoulos's user avatar
1 vote
1 answer
44 views

Different results using FindArgMax and ArgMax

I want to find the maximum of $|g(\kappa)|$ defined as follows, For some $A>0$, $\alpha\in (0,\infty)$, and $\kappa \in [-\kappa^{*},\kappa^{*}]\subset [-\pi,\pi]$, define $g(\kappa )$ \begin{...
KZ-Spectra's user avatar
0 votes
2 answers
65 views

Parametric Minimize strongly revisited

Let we try to run this simple code: Minimize[{Cos[x + a/2], {0 <= x <= \[Pi], 0 < a < 1}}, x] It doesn't work. But ...
lesobrod's user avatar
  • 1,729
0 votes
1 answer
71 views

Minimize doesn't work

I'm trying to minimize the function V(phi) using the code below ...
Gabriel Ybarra Marcaida's user avatar
0 votes
0 answers
42 views

How to find optimal solution

I want to ask something. Right now, I want to try to find the optimal solution from a function in a paper. here is the function : And here is the numerical example : There is solution procedure that ...
Grizzly54's user avatar
2 votes
1 answer
81 views

Log scale of y-axis is still very small [closed]

I am trying to use LogPlot of Mathematica to rewrite only y-axis (not x-axis) of the plot as log scale. But the y-axis is still very small. By the following code <...
Mehdi's user avatar
  • 31
0 votes
0 answers
40 views

MatrixExp introduces nonconstant expression #1 independent of variables

I am trying to use Mathematica to minimize a particular cost function. One part of the definition of the cost function is taking the matrix exponential of an arbitrary $4 \times 4$ Hermitian matrix. ...
Silly Goose's user avatar
10 votes
1 answer
141 views

How to make a Voronoi chart with areas proportional to data?

In this chart the areas of the voronoi cells have been apportioned so that they represent the fraction of total spending. How can I make a chart like this? Suppose we have the data: ...
flinty's user avatar
  • 25.6k
4 votes
1 answer
271 views

Placing a disk of maximum size in a region surrounded by random points

I start with an array of points (cba) and add randomness to generate (cbar). Four point are deleted from it to generate ...
Syed's user avatar
  • 55.7k
2 votes
3 answers
129 views

An issue concerning the NMaximize command in Mathematica

I have two sets. One set consists of constants and the other one consists of expressions depending on two variables "a" and "b". I find absolute values of correlations between the ...
Tona's user avatar
  • 31
3 votes
1 answer
69 views

Peak Appearances in Plot Outputs from Optimization Routines

Dear fellow researchers and Mathematica enthusiasts, I've been working on a computational physics problem and encountered an interesting issue regarding the appearance of peaks in my plots, which I ...
Everlin Martins's user avatar

1
2 3 4 5
45