All Questions

Filter by
Sorted by
Tagged with
8
votes
1answer
289 views

Maximizing over a 1D region

Why does the following not compute? MaxValue[-y^2, y ∈ Interval[{-1, 1}]] I expect it to compute the maximum value of the funtion over the interval from -1 to 1 ...
0
votes
1answer
54 views

NMinimize cannot be used within RegionPlot

My version of Mathematica (11.1) apparently cannot do NMinimize within RegionPlot. It did work before (!) my last software update. Here is an example from user GioMott having the same (unanswered) ...
0
votes
0answers
35 views

RegionPlot with FindMaximum

I don't understand why each time I'm launching this computation Mathematica buggs and I get a message from Windows that the Kernel stopped working... I'm trying to get a map of where the value of ...
3
votes
0answers
106 views

Finding the shortest distance of two points and an area

So I have a region defined by something like MeshRegion[{{0, 0}, {1, 1}, {2, 1/2}, {2, -1/2}}, {Line[{1, 2}], Line[{2, 3}], Line[{3, 4}], Line[{4, 1}]}], and two ...
0
votes
1answer
67 views

Optimization of a function over a geometric region

Say I have a function f[x,y,z], what is a good way to find its minimum or maximum value over a continuous region (e.g. a ...
1
vote
1answer
73 views

RegionPlot of minimum value

I have a complicated function $f_{a,b}(t)$ of one argument ($t$) whose definition depends on two parameters $a,b$. For every point in the plane $a-b$ (with $a\in[a_{min}, a_{max}]$ and $b\in[b_{min}, ...
1
vote
2answers
339 views

Making a plot to visualize an optimization problem [duplicate]

The feasible region is the rectangle defined by 40,000 <= x <= 80,000 30,000 <= y <= 50,000 intersected with the half-plane x + y <= 110,000. ...
1
vote
2answers
120 views

Region and Infinite Line Intersection does not yield correct results with Maximize

I have a list of points pixelvaluepos that I can use to convert to a BoundaryMeshRegion. I also happen to know the centroid <...
3
votes
1answer
111 views

Maximising area of intersection of regions

I'm interested in maximising the area of intersection between two or more geometric regions (for now, in 2D). For instance, I can calculate the offset between the centres of two annuli with given ...
1
vote
1answer
113 views

RegionPlot with rank constraint

I am trying to plot the feasible region of a rank constrained semidefinite program shown below: The Mathematica code that I am using is the following: ...
1
vote
1answer
81 views

How do I Maximize over a Cuboid region?

So, I want to, say, find a maximum value of $|x_1x_3+x_1x_4+x_2x_3-x_2x_4|$ in a unit cube in 4D; how do I do that? I've tried ...
2
votes
0answers
116 views

Minimize with Interval restriction [closed]

If for instance I have a problem of this sort: ...
5
votes
2answers
2k views

Can't find maximum of a function on a region

for h=0.2 I'm trying to find the maximum value of (-h^2/3)*(-1/x^2) subject to ...
6
votes
2answers
154 views

How to find alignments of interlocking shapes?

I'm searching for the ways to align interlocking shapes, that is, finding the locations and rotations that maximize the arc length at which they touch. For simplicity, I'm assuming 'shapes' are one ...
4
votes
1answer
142 views

Why does EvaluationMonitor in FindMaximum only work for some regions?

This has come about after trying to understand what was going on with this question about FindMaximum and regions. My first thought in that scenario was to set-up <...
6
votes
1answer
208 views

Easy FindMaximum returns a wrong answer

FindMaximum in region is a new function in mma10,but when I tried the following example: ...
5
votes
2answers
523 views

NMinimize in one-dimensional Interval

An Interval should be a one-dimensional region, so a region. I tried to minimize a function over an interval, e.g.: ...