6
votes
Accepted
Improve performance of Linear Optimization
For machine precision numbers, the actual backend of LinearOptimization will be some compiled and heavily optimized library. Such libraries require the problem to ...
4
votes
Accepted
How to find a densest configuration of several non-overlapping unit disks?
We try to manually construct the convex hull.
...
4
votes
3
votes
`FindMinimum` can't evaluate `Nearest` numerically
$Version
(* "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)" *)
Clear["Global`*"]
Nearest is already ...
3
votes
Accepted
What are some ways to speed up calculations
These can be calculated once:
Bs = {0, 0.5, 1, 2, 5, 7};
entable = Table[en[B], {B, Bs}];
Then using the pre-calculated table
...
2
votes
How to do edge detection in Mathematica?
ImageLines will be troublesome on this processing especially for the "empty" image where many horizontal lines can be found and ranked nearly equivalently. I suggest attempting to determine ...
2
votes
Accepted
Plot several graphs of a function density distribution using Table
DensityPlot has the Attibute "HoldAll":
Attributes[DensityPlot]
{HoldAll, Protected, ReadProtected}
Therefore, if you want to evaluate "ps[B]" ...
2
votes
Finding a fixed point of function without a closed-form solution
The function f2 is undefined for a == 0
...
2
votes
I am trying to plot the function below, however, it does not seem to be working
Remove the "underscores" in the plot-command!
Try
f[x_] = Integrate[(7 + 9 x)/(1 + x^2), x]
Plot[f[x],{x,-5,5}]
2
votes
Using GraphicsGrid for density plots with color scales
Graphics and Inset give you more control, e.g.
...
2
votes
Why can't NSolve find values that FindInstance can?
NSolve work if we use infinite precision number n,x,eps.
...
1
vote
How to calculate the depth of the lake in mathematica?
We can use a combination of GeoNearest and Entity:
I use the center of your map:
...
1
vote
How to find a densest configuration of several non-overlapping unit disks?
Your method would not work because of:
ConvexHullRegion is imprecise (even WorkingPrecision has no effect in ...
1
vote
How to do edge detection in Mathematica?
Edited to use the new "empty" image
I would start by converting images to greyscale:
greyimgs = Table[ColorConvert[i, "Grayscale"], {i, imgs}]
...
1
vote
How to make a density plot for an isotropic function written in cylindrical coordinates?
You just need to define the function you want and use one of the following Mathematica functions. If I understand what you are asking for
...
1
vote
Using UnrankPermutation with Maximize
This works in 13.3 on Windows 10 with NMaximize instead of Maximize.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mathematical-optimization × 2125equation-solving × 198
numerics × 148
plotting × 140
performance-tuning × 128
calculus-and-analysis × 125
fitting × 120
differential-equations × 117
list-manipulation × 83
matrix × 78
numerical-integration × 74
functions × 64
linear-algebra × 62
maximum × 61
warning-messages × 50
constraint × 49
symbolic × 45
probability-or-statistics × 43
programming × 40
graphs-and-networks × 38
nonlinear × 37
function-construction × 35
evaluation × 28
regions × 27
interpolation × 26