Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.
2
votes
NMaximize does not globally maximize. What is the alternative for global solution?
Here is a more direct approach: playing with Method.
NMaximize[{fmymin[a0, b0, a1, b1, a2, b2] - fmyminorg[a0, b0, a1, b1, a2, b2],
{0 < a2 <= a1 <= a0 < 1, 0 <= b0 <= b1 <= b2 < 1}}, {a0, b0, a1, …
1
vote
Accepted
Optimization Problem: NMaximize goes out of the constraints
It might be that the starting values are too far away from those that maximize the function. Rather than using Table one could put everything into a Do loop and use the previous estimates as the star …
3
votes
Accepted
NMaximize refuses the constraint set
Once the coding errors are fixed, the results satisfy the constraints (to what one would expect recognizing that there will be round-off error).
Clear[n, objFun1, constFun1, varFun1, params, infoStk, …
4
votes
Accepted
NMaximize does not globally maximize. What is the alternative for global solution?
This is not a satisfactory answer but maybe a start using a brute force approach.
First the online help states:
NMaximize always attempts to find a global maximum of f subject to
the constraints g …
2
votes
Optimize the distribition of a dataset over 4 quadrants
Essentially after picking any the two proportions for neighboring cells, the remaining two proportions are already fully determined. If you desire certain proportions for $Q_1$ and $Q_4$ or $Q_2$ and …
4
votes
Accepted
Why can't function `Maximize` find the maximum position exactly?
Expanding on @march 's comment as stated in the online documentation FindMaximum finds local maximums so good starting values are important especially in a function like what you're using that has sev …
8
votes
Finding least upper bound line above a set of points using NMinimize
It seems plausible that a line that connecting two points on the convex hull is the solution.
(* Find points in convex hull *)
chr = ConvexHullRegion[sTest][[1]];
(* Find the two points on the convex …
3
votes
Accepted
Computing $c$ that minimizes $\left(\sum_i h_i c_i\right)^2/\sum_i h_i^2 c_i$
Consider a vector of length $n$ (with elements sorted from low to high) named $h$. I propose that the solution for the minimum value of $k$ is
$$4 h_1 h_n/(h_1+h_n)^2$$
with $c_1=h_n/(h_1+h_n)$, $c_n …
2
votes
A case of complicated fitting of multiple datasets
I'm assuming the objective is to find "the best" set of models (all with a single common parameter) with potentially different models for each of many data sets.
Using NonlinearModelFit one could fit …
1
vote
Possible bug: FindFit NonlinearModelFit constraint vs data
I think this issue is mainly (but not completely) associated with numeric precision issues and is not a software bug. Here's why...
Consider the data with just 3 observations to fit the model in the …
2
votes
NMinimize incorrectly says "The problem is unbounded"
I wonder if the issue is just that of lack of numerical precision and/or there are multiple solutions that give the same minimum. Consider the pieces of your code as error (the function being minimiz …
8
votes
Accepted
How to visualise (graphically) this optimization problem in Mathematica?
This is more of an extended comment/question. Are you looking for an interactive 3D representation? Below is a very incomplete example:
Manipulate[
aa = Table[-10 + 20 i/100, {i, 0, 100}];
a = (1 …
1
vote
How do I maximize the following?
This is just an extended comment. Many times constructing a figure helps one focus on a solution. Below the gray dots are the values of Log[1/y, Abs[Sqrt[2] - x/y]], the green dots are the values wh …
1
vote
How to find the value which minimises the residual sum of squares
You probably first want to Rationalize the equations:
EQ1 = Rationalize[σ*(1 - α)^-(β + 1)*Gamma[β + 1] - 3.69348, 0];
EQ2 = Rationalize[σ*((1 - α)^-(β + 1) - 2*(2 - α)^-(β + 1))*Gamma[β + 1] - 2.0520 …
6
votes
How to find the maximum value of this trigonometric function?
A contour plot of the condition shows that $\beta$ will need to be between 0 and around 0.5:
ContourPlot[Sin[2 α + β] == 2 Sin[β], {α, 0, π/2}, {β, 0, π/2},
FrameLabel -> (Style[#, Bold, 24, Italic] …