# Questions tagged [mathematical-optimization]

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

2,160 questions
Filter by
Sorted by
Tagged with
1 vote
129 views

### How to do edge detection in Mathematica?

I have some pictures of water level and I want to do edge detection, I used the following command, but this command is vertical edge detection and I want horizontal edge detection and water level. ...
60 views

### How to make a density plot for an isotropic function written in cylindrical coordinates?

$f(\rho,z)=2\rho^2+\frac{2}{3}z^2 \quad$ is a function in the cylindrical coordinate system $(\rho,\theta,z)$ The function $f(\rho,z)$ is isotropic because it does not depend on the angle $\theta$. ...
50 views

### Using UnrankPermutation with Maximize

I want to try and use Maximize with UnrankPermutation to find Costas Arrays (or as close as possible) for a given length l with first two elements l, 1. A permutation array that maximizes the number ...
48 views

### NMinimize or other means for mixed-integer problem with constrains

Given two real numbers 0 < x < 1/2, 0 < y < 1/2 and an integer n, harmonics are ...
193 views

### Improve performance of Linear Optimization

EDIT I am reframing the question here by pulling out the relevant part about linear optimization, you can find the original question and the entire code down below. I am trying to increase the ...
68 views

### Find knee by intersecting line method

I have an x-y data list. The data is here. It looks like below: I want to mark the knee location. I mean I need to find the point of greatest slope change and get the x coordinate of this point. ...
120 views

...
30 views

### What is the network structure of Ademxapp Model A1 Trained on Cityscapes Data in the Mathematica?

I want to implement the model (Ademxapp Model A1 Trained on Cityscapes Data) on my data for segmentation, so I need the partial structure of this model, can anyone help?
65 views

### Maximize does not finish or does not work

I need to maximize the following expression over the two variables $d$ and $a$, in terms of the parameters $t, m, k$: ...
1 vote
85 views

### Trying to use Linear Optimization to solve inequalities

I am trying to use Mathematica to get bounds on some quantities using a certain procedure which is called conformal bootstrap. For the users who don't come with a background in HEP, I am basically ...
54 views

### NMinimze cant find points that satisfy constraints

NMinimize cant find solutions for a function which clearly has one. Setting a working precision resulted in some output, however with error messages about tolerance and precision. Heres my code. The ...
1 vote
65 views

### Numerical Error using compile

I'm trying to compile a function and I'm running into the following error CompiledFunction::cfne : Numerical error encountered; proceeding with uncompiled evaluation. I think I have succeeded in ...
90 views

### Minimax problem where a combination of Minimize and Maximize gives no result at all

I rarely use Mathematica, but I usually do not have any problem with simple commands like Minimize or Maximize. I have find to ...
1 vote
224 views

### Finding maximum value of a function with parameter

How can I find the maximum value (and the corresponding $x$) of the following function with parameter $t$: $$f(x) = |x^2-tx + 2t|$$ on a closed interval $x\in[0,1]$? I tried using ...
96 views

### Finding the Minimum of a Four-Variable Function

Greetings esteemed colleagues. I had previously posted regarding the minimisation of a function using Mathematica, and colleagues were kind enough to provide some useful suggestions that proved quite ...
1 vote
61 views

### Help with code for impulsive optimal control problem

I am using Mathematica 13.3 to numerically solve/generate numerical plots for my impulsive control problem. The optimal control problem is: T is time from0 to T where T is the terminal time K(t), B(t) ...
1 vote
60 views

### Finding the symbolic root of a non-linear function with fractional exponents

Define $f(x, a, t) = (x-t)^a - \frac{x^2}{2}$ where $x>0$ is the main variable of interest and $\alpha \in (0,1)$ is the parameter of curvature: ...
1 vote
106 views

### Finding the maximum of a non-linear function symbolically

I have the function $$f(x,\alpha) = x^\alpha - \frac{x^2}{2}$$ where $x>0$ is the main variable of interest and $\alpha \in (0,1)$ is the parameter of curvature: ...
48 views