# Questions tagged [mathematical-optimization]

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

2,018 questions
Filter by
Sorted by
Tagged with
69 views

### Why is mathematica not as popular as python? [closed]

Just want to know which is a proper learning platform for practicing math and statistics.
44 views

### What is the key difference between Mathematica and other logic computation program? [closed]

differences between Mathematica and MATLAB, Python, Java.
365 views

### Is the stochastic gradient descent minimization implemented in Mathematica?

I want to use Stochastic Gradient Descent method on its own (not for neural networks) to minimize an objective function in Mathematica. I couldn't find any SGD routine implemented in Mathematica (12.0)...
57 views

### Integro-differential equation with parameters

I am trying to solve an optimization problem with constraints that leads to the following integro-differential equation ...
64 views

### Finding element selected in NMaximize[{Min[...], constraints},{vars}]

How can I determine which element of Min[] is being selected in a NMaximize[{Min[...], constraints},{vars}] problem? For example,...
19 views

### How to play to Sound's sequences at the same time?

scaleHz[ff_, nr_] := Table[ff*2^(i/nr), {i, 0, nr}] scale[fs_, d_] := Play[Sin[# 2 Pi t], {t, 0, d}] & /@ fs ff = 440; n1 = 12; n2 = 14; n3 = 16; d1 = 1; ...
95 views

### Placing shapes along a square spiral

Proposed code example is inspired by the main idea of this challenge. Wolfram Language provides great opportunities in computational geometry. But not all of them are equal in terms of speed and ...
44 views

### Code not getting solved by NMaximize as 1/0 is encountred

I have the following code. This code requires to solve the model with two variables to optimize the function. a1 and a2 are the variables as shown in the code ...
85 views

### Code running for longer period to evaluate

0I have the following code where I want to maximize a stochastic function based on two variables. The code is taking a very long time to evaluate but still not giving answers. Can anyone help? ...
64 views

### Why, if you write the expression in the form of two functions, does the code stop working?

I would like to find the minimum of the function EER[a, v] using parallel computing. If I write the code like this, it works: ...
1 vote
84 views

### Understanding the calculation of the periodic function $f(x)=x-x^3, \quad -1<x<1$

It is given the following periodic function $$f(x)=x-x^3, \quad -1<x<1$$ This is an odd function, so the coefficients $a_n,a_0$ of the Fourier Series are zero. Usually, I face function with two ...
79 views

### Still bug in NMaximize

Executing in 13.2 on Windows 10 ...
79 views

### Maximization of a concave function with contraints in the arguments

I have been struggling on solving this problem. Suppose you have a function f(x, y) that is concave in x and y. I want to find (x, y) that maximize f(x, y) with x ...
112 views

### Plotting a Stochastic function

I have a stochastic function and I tried to plot it in Mathematica ...
1 vote
2k views

...
142 views

### Status of DualLinearProgramming

DualLinearProgramming is referenced in this tutorial tutorial/ConstrainedOptimizationLinearProgramming It exists in Mathematica ...
50 views

### Fitting parameter to match a dataset to another dataset

I am using a Module which calculates 3D-data based on 5 parameters and another input dataset. I'd like to fit the result of this modul to another set of data. Since my code became very long I will ...
267 views

### Can Mathematica resume the data that has been completely closed/quit?

Imagine that I run these four simple plots on a PC and then close and quit Mathematica, say the notebook file name is NOTE1 ...
102 views

### ImplicitRegion with parameters

My goal would be to run the following code: ...
60 views

1 vote
53 views

### LinearOptimization and Accuracy

Surprised to encounter the following issue in handling Accuracy with LinearOptimization: ...
146 views

### Mathematica does not show anything after running for higher iterations

Consider a BVP: $y^{\prime\prime}=\frac{3}{2}y(t)^{2}$ with the boundary conditions $y(0)=4$ and $y(1)=1$. The exact solution is $y(t)=\frac{4}{(1+t)^{2}}$ and the initial guess is $y(t)=4-3t$. Now I ...
35 views

### Creating Table/LaTeX with Extreme Points based on parameter values in a table

I would like to simulate extreme points and illustrate results with exogenous parameters and optimal values. I created the input table and table with the optimization problem for a simplified example. ...
1 vote
159 views

48 views

### Optimize the path length in a KaryTree

I have a engineering problem that I found suitable in formulating it in graphs. A source node supplies pressure or whatever. Each node (vertex) has two edges of a certain e.g. pressure loss...whatever....
1 vote
59 views

### Equality contraint violated with NMinimize

I am attempting to numerically optimize a function of only 2 parameters k, θ. There are two inequality constraints (1 each on k ...
30 views

### Evaluation stops without output or error when using Nested Maximize

I am trying to evaluate a max max min problem. The code is as follows: ...
58 views

### LinearOptimization thinks 0-1 ILP is an MLP

I try to solve this 0-1 integer linear program (maximize, thus the minus) with LinearOptimization: ...
1 vote
103 views

### NMinimize keeps returning Indeterminate for well defined function

I am attempting to numerically optimize a function of only 2 parameters k, \[Theta]. The function is well-defined and the constraints are simple. However, the ...
211 views

### Why is the plot of low quality produced?

Stydying the modulus of continuity of $\sqrt x \log(x)$ in version 13.1 on Windows 10, I execute ...
219 views

### Memory problem for maximizing a multivariable function

I need to maximize the following function. Unfortunately I have to maximize without using numerical methods to prove that the maximal value is 3Sqrt(2Sqrt(3)-3) (about 2.04375). I tried it twice (once ...
127 views

### Interior point method for unconstrained problems

I was recently working on applying the FindMinimum function to $f(x)=(x+1)(x-1)$, and chose the interior point method as the 'method', which yielded $x=0$. I would like to better understand how the ...