Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.
6
votes
2answers
161 views
Built-ins for discrete ArgMax or ArgMin?
Wondering whether there are discrete versions of ArgMax / ArgMin, that is, something that will find the part of an expression at ...
1
vote
0answers
100 views
RandomSeed is not giving me different initial values [closed]
I'm running a NMaximize problem using NelderMead. For a reason I don't understand when I try to set different initial points using RandomSeed and I check this with the step monitor the initial vector ...
1
vote
0answers
95 views
How to express this output in the form $X=A.x$?
This problem arose in my stereo vision project.
I have two matrices:
$$
A = \left(
\begin{array}{ccc}
\text{x1}*\text{p131}-\text{p111} & \text{x1}*\text{p132}-\text{p112} & ...
29
votes
7answers
965 views
0
votes
0answers
92 views
Edit mathematica API
What is the Document Viewer in mathematica purposes other then looking up apis?
For example why can I edit the mathematica documentation, but the content doesn't sucessfully save?
Subgoal: In the ...
1
vote
1answer
108 views
Seemingly simple optimization problem is slow
I'm trying to generate a demand curve numerically, given a utility function. The function for the demand is defined like so:
...
1
vote
1answer
187 views
Optimizing the fitting of Ordinary Differential Equation(NDsolve) involving interpolation functions
I am a newbie to this forum. I am trying to use NDsolve to solve some ODEs involving the interpolation function. Then, I will compare the fitted curve and data to determine the ODE coefficients.
...
3
votes
0answers
177 views
What in practice is the difference between NMaximize[] and FindMaximum[]? [closed]
NMaximize[f,x] maximizes f numerically with respect to x.
...
1
vote
0answers
50 views
Using lists as optimization parameters [duplicate]
Possible Duplicate:
Minimizing a function of many coordinates
Suppose that the function $F[\vec{x}]$ computes a certain polynomial of the elements of the list $\vec{x}$. How can I use ...
0
votes
0answers
105 views
Optimization problem—constraints not valid? [closed]
I have a model optimization problem: maximize rent, ri, through signals, si and sj, given ...
1
vote
0answers
128 views
How to find the minimum of a function that is a sum of an analytical function and a series expansion?
I need to get a minimum of function F[ang] which is defined as a function of angle:
...
-3
votes
1answer
381 views
How can Mathematica solve this set of differential equations? [closed]
I'm trying to solve this set of non linear differential equations, but apparently it won't solve. I really tried all the tweaks I could think of. Still no progress... So now I turn to you, can you ...
2
votes
0answers
174 views
Numerically/Analytically Solving a System of Equations
I have $6$ functions $f_i(x,y,z)$, $(i = 1, \ldots, 6)$ in three variables $x,y,z$, and I would like to find a simultaneous instance of these variables, say $(x_0, y_0, z_0)$, such that $f_i(x_0, y_0, ...
0
votes
1answer
85 views
Problem combining 2 models [closed]
I'm trying to combine 2 independent linear optimization models while individually they are working combined they are not.
My guess on the mistake is that the last part where I solve for the variables ...
2
votes
1answer
175 views
Restrictions problem
I tried to program a simple linear optimization model and don't know where my mistake lies.
The function should be a sum over "t" and "z" from the product of two constants ("e" and "H") and the ...
1
vote
3answers
432 views
Determining the local extrema of discrete data [duplicate]
Possible Duplicate:
Local max/min of Mathematica data sets
If I have a continuous function f (for example ...
0
votes
0answers
231 views
dummy variable or binary variable [closed]
In my optimization model, one of the additional constrains implies that all the variables "X" depend on the indexes "a" and ...
4
votes
1answer
152 views
Maximizing functions with Which statements
I'd like to be able to find the maximum value that my Capex function (see below) generates. This is a fairly simple function so I could just add it up but I have more complex functions of a similar ...
1
vote
1answer
313 views
How to find local minima of a multivariate function with singularity?
I am working on a logistic regression problem which requires minimizing a cost function J[{theta0, theta1, theta2}, X, y] to find the optimal value for fitting ...
2
votes
1answer
161 views
About high dimensional integrals
I want to be able to do high dimensional integrals like,
(..naively I wrote it as this..)
...
7
votes
1answer
409 views
How to speed up Minimum Spanning Tree algorithm?
How to speed up MST algorithm? I work with graphs and I have adopted Prim's algorithm for my needs, from here.
The graphs which I use are very dense (number of vertexes: $V=500$ and every vertex is ...
14
votes
2answers
379 views
How can I speed up the classic GA for graph coloring?
I'm trying to compute the chromatic number of this graph (which is 28):
g = Import@"http://www.info.univ-angers.fr/pub/porumbel/graphs/dsjc250.5.col";
My genetic ...
0
votes
0answers
276 views
Reduce/NSolve cannot solve a constraint problem?
I am trying to solve the following problem:
Minimize Integral[ (y''[x]+10)^2,x]
Where y''[x]+a*y'[x]+y[x] = 0, and the initial conditions for the DE are
...
4
votes
1answer
225 views
2
votes
1answer
398 views
FindMaxValue and FindMaximum - how to find GLOBAL maximum and not just LOCAL maximum
I will not be able to provide a simple minimum working example here as this seems to be very specific.
I have an interpolating function which I substituted into a PDE and then plot said PDE at a ...
6
votes
2answers
562 views
Implementation of a new Game of Life Rule
I need to implement a new "game of life" in Mathematica: I have three states — black, red and white. Black means go forward, red go back and white take no action.
I would like to implement the ...
0
votes
2answers
340 views
3
votes
1answer
326 views
How to use mathematica to create school time-table?
I wonder if it is possible to use Mathematica for helping myself to create school timetable. I have a feeling that it requires quite simple optimization algorithm, but I have never been into ...
1
vote
2answers
130 views
Scalar product of two vectors have the least value
In geometry 3D, let $A(1,2,-3) $ and $B(-1,4,1)$ are two points. In the plane $(P):2x-3y+3z-17=0$, find a point $M$ such that the scalar product of two vectors $AM$ and $BM$ will have the least value. ...
4
votes
1answer
171 views
Optimizing a rank 3 tensor
Assume we have the following elements
\begin{equation}
F_i{}^j \;and\; S_{ij}{}^k,
\end{equation}
which represent the components of tensorial objects of ranks 2 and 3 respectively, with Complex ...
2
votes
1answer
177 views
FindMinimum, NMinimize, etc. with external process
I was hoping to be able to use MMA's minimization power to work with an external process. I want to minimize the function 'TryThisNumber[x_]' which sends the value of x to something external and gets ...
1
vote
3answers
153 views
How to find maximum ConditionalExpression among all solutions
For example I want to find solution with maximum value among solutions (and possibly plot it):
...
2
votes
1answer
254 views
Problems with FindMinimum for Constrained Optimization
I am trying to define a simple optimization problem, arising from the discretization of a simple Optimal Control problem.
The problem that results is essentially linear, with bilinearities only ...
3
votes
2answers
182 views
Find all points that have the same minimum? [duplicate]
Possible Duplicate:
How to find all the local minima/maxima in a range
Sin[x] have two points ($3\pi/2,7\pi/2$) where the same minimum ($-1$) is achieved ...
3
votes
1answer
214 views
wrong use of _?NumberQ?
I am having trouble with a numerical exercise. Here's a simplified version of my problem.
I define two functions to find the solution to two constrained maximization problems:
...
2
votes
1answer
212 views
Handing a list of constraint expressions to a C++ function with MathLink
I need to solve an optimization problem, which is defined in a Mathematica notebook.
Using Mathematica's FindMinimum is not an option, because it is too slow. So, ...
17
votes
0answers
631 views
Identifying critical points of 2/3D image/cubes
Upshot
I am interested in identifying critical points of a 3D field/cubes (maxima, minima, tube-like and wall-like saddle points) and 2D field/image (maxima, minima, saddle points). I.e. the ...
7
votes
3answers
201 views
How can I efficiently check if a graph is unit distance?
A unit distance graph is a graph that is embeddable in the plane so that every edge has length 1.
...
1
vote
2answers
573 views
Find the dimensions of a cylindrical can that will minimize the cost of the material
A cylindrical can is to be made to hold 1 L of oil. Find the dimensions
that will minimize the cost of the metal to manufacture the can.
This is a standard calculus problem.
The volume of the ...
3
votes
1answer
223 views
parameter optimization
Does anybody know of any tutorial material that explains how to use Mathematica to fit parameter values used in a set of ordinary differential equations to experimental values stored in a comma ...
3
votes
0answers
160 views
Semidefinite Programming
I want to solve a numerical optimization problem using semi-definite programming. Is there a package or add-on that equips mathematica with this functionality?
2
votes
0answers
186 views
Having difficulty with the Minimize command
I am having trouble getting an answer to this question...Am I missing something that anybody can see.
...
3
votes
2answers
457 views
optimization problem with NDSolve
I want to minimize the function fcc. When fcc is calculated for a specified point the answer is correct:
...
3
votes
1answer
285 views
Optimizing a function involving NDSolve results in error messages
I want to minimize a function f with NMinimize but an error occurs that says:
...
5
votes
2answers
257 views
What alternative notation of subscripts/superscripts that are also treated as SYMBOLS in Mathematica?
I tried to avoid using the subscript $A_0$ in the Module, and get an error with $A[0]$.
...
0
votes
0answers
71 views
How to Clear a symbol with subscript in Mathematica? [duplicate]
Possible Duplicate:
Clear complains that a variable is not a symbol or a string?
I want to clear $\lambda_0$ which is assigned to be $\lambda_0=1$.
From the reference here, Clear ...
15
votes
0answers
377 views
Optimization with assumptions
I have the following problem, when I am trying to optimize function with pre-defined assumptions.
I am using Mathematica 8 and I wrote the following simple code
...
4
votes
1answer
302 views
How to solve a quadratic integer programming problem?
I want to solve a quadratic integer programming problem in Mathematica. My first attempt looks like this:
...
6
votes
1answer
215 views
Numerical problems with calculation of function
I have a problem with a calculation which I try to do with Mathematica (8.0.1).
I have the following function which describes a cone (with half opening angle ...
26
votes
3answers
3k views
How to find all the local minima/maxima in a range
I want to find :
all local maxima in range
all local minima in range
From those points I can interpolate and combine functions upper and lower boundary. What I am really interested in, is the ...


