# Questions tagged [mathematical-optimization]

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

2,245 questions
Filter by
Sorted by
Tagged with
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 <...
365 views

### How to find stationary points graphically?

I have the following Mathematica code: ...
• 2,423
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 ...
1 vote
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" ...
• 21
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 ...
• 301
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,...
• 101
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 ...
• 1,570
69 views

### Maximization subject to constraints

I want to solve for parameters and not specific values. ...
• 1
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 ...
• 1
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: ...
• 21
1 vote
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}. ...
• 476
1 vote
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? ...
• 147
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 ...
• 47
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 ...
• 125
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 ...
31 views

### Getting better answers by smaller working precision?

I have the following code ...
• 476
47 views

### NMaximize doesn't satisfy constraints

I have the following code; ...
• 476
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 -...
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 ...
• 223
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: ...
• 437
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 ...
• 19.7k
1 vote
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 ...
• 149
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$: ...
• 3,881
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 ...
• 21
62 views

...
• 23
554 views

...
• 55.7k
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. ...
• 111
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 ...
• 111
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 ...
• 316
1 vote
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 ...
1 vote
136 views

### Maximum value of a constant in a function [closed]

I'm trying to find the maximum $B$ of the following function: ...
• 147
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 ...
• 327
43 views

1 vote
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{...
• 461
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 ...
• 1,729
71 views

### Minimize doesn't work

I'm trying to minimize the function V(phi) using the code below ...
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 ...
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 <...
• 31
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. ...
• 101
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: ...
• 25.6k
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 ...
• 55.7k