Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.
0
votes
1answer
60 views
Working precision for each variable
How can I define working precision for each variable individually
for example:
Maximize[x y< 100, {x, y}]
where the working precisions for ...
0
votes
0answers
76 views
Non linear constrained interger Optimization
I need to maximize the equation below which is subjected to some nonlinear constraints
Maximize hsum + isum + jsum + ksum + lsum + msum + nsum + osum
...
1
vote
0answers
35 views
NMaximize with matrix input
I defined function f[x_, fixed_] := {...}. Here x is an $M\times N$ matrix. I want to maximize $f$ with respect to $x$. I have ...
1
vote
0answers
79 views
Shapley value and Mathematica [closed]
I use the TuGames package in Mathematica to analyze
cooperative games. Is it possible to calculate Shapley
value, Nucleolus, etc., for a large number of players like
400 or more?
0
votes
1answer
101 views
Maximizing trig functions in Mathematica
Just to give some context, my motivation for this programming question is to understand the derivation of the CSHS inequality and basically entails maximizing the following function:
...
-3
votes
0answers
59 views
Symbolic constrained optimization with general/unknown objective function [closed]
I am fairly new to Mathematica and would like to solve the following problem:
$$\max\limits_{w,l,c} U(w,l,c)$$
such that $1=w+l, c = yl, w \geq 0, l \geq 0$ and I don't want to define any functional ...
-4
votes
0answers
35 views
Any given a complete graph, through the program calculates all of his non-isomorphic spanning subgraph [closed]
Any given a complete graph, through the program calculates all of his non-isomorphic spanning subgraph, ie write the complete figure can be calculated for all non-isomorphic subgraphs program just ...
1
vote
2answers
143 views
Finding normals to a curve through a given point
I want to find x on curve $y(x)$, where curve $y(x)$ is perpendicular to point $(x_0,y_0)$.
for this I minimize the distance between points $(x,y(x))$ and $(x_0,y_0)$, here's an example for point ...
0
votes
0answers
40 views
NMinimize and FindRoot Issues with System of Equations [duplicate]
I am trying to solve a constrained optimization problem with a system of transcendental equations and am running into issues with NMinimize. I have a system of equations (...
1
vote
0answers
50 views
Conditional solution for system of linear equations
I have a linear equation system Q.m = t, with m unkown and where Q has dimensions ...
7
votes
2answers
145 views
FindShortestTour for charity (or: How can I optimize meal delivery with FindShortestTour?)
I've been wondering about this for a while - but never got around to asking - until I saw faleichik's incredible answer to Mathematica Minecraft.
I did some work at a not-for-profit a little while ...
18
votes
1answer
758 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 ...
3
votes
1answer
84 views
Using a user defined NormFunction in FindFit or NDSolve
I would like to use a different norm instead of the 2-norm in FindFit (Mathematica 9). For example, instead of using
$$\sqrt{\sum (x_{\mathrm{model}} - ...
3
votes
0answers
89 views
Trouble with Minimize
Minimize[{t^2, 1 == 3*t + 16*u}, {t, u}, Integers]
It does not give the solution t = -5 and u = 1.
Am I missing something?
The solution being known and ...
15
votes
1answer
420 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
...
0
votes
0answers
60 views
1-norm minimization [closed]
I am fairly new to Mathematica and I'm having trouble running a 1-norm minimisation of the following function, g(x) = f(x) - c where c is the data to be fitted to and f(x) is some function. I know how ...
1
vote
1answer
66 views
Feasibility of Linear Program
I have a set of (real) linear equations/inequalities and I want to know whether they have a solution, and to find at least one. The goal is to do this quickly. ...
1
vote
1answer
87 views
using array elements in minimization
I have switched from mupad to Mathematica, however the syntax is completely different here. I want to
...
0
votes
0answers
54 views
Initializing Minimization [duplicate]
I am trying to implement a model predictive control scheme in Mathematica, e.g. I optimize input sequences by predicting future outputs. So every time I call the cost function it will simulate the ...
0
votes
0answers
54 views
Sudden increase in computation time for similar computations
I'm doing some numerical simulations on a physical system. In the most simplest form I have now the following:
...
4
votes
1answer
123 views
How to solve this simple equation?
I want to minimize a quadratic equation, but Mathematica does not solve it and only rewrites the solution. I wonder if there exist any way I can skip the computation by hand (I can solve it using ...
6
votes
2answers
227 views
1
vote
0answers
80 views
How can I say that all quantities need to be positive (and real)?
Can you say at the beginning of a script in mathematica that you want all the quantities to be positive (and real)? So that in all calculations, only the real values of these quantities will be ...
2
votes
2answers
102 views
Optimizing functions taking matrix arguments
I'm looking for general information on how to optimize matrix valued functions, I have the following function I'm looking to maximize (or figure out if this is possible at all).
...
0
votes
1answer
68 views
Using NonlinearModelFit to fit data with errors
Assume we have some data of measurements
SeedRandom[9];
data = Table[{i,2*(1 + 5*RandomReal[])*Exp[-0.01*(1 + RandomReal[])*i]}, {i, {0, 100, 200, 400, 700}}];
...
2
votes
0answers
68 views
Speeding up a numerical constrained quadratic optimization
I'm trying to solve a quadratic optimization problem in 35 variables, $\vec{α} = \left< α_1, \ldots, α_{35}\right>$:
$$
\begin{aligned}
&\operatorname*{maximize}_\vec{α}&&1.0\cdot ...
10
votes
2answers
366 views
Is it possible to use the LevenbergMarquardt algorithm for fitting a black-box residual function?
I have a black-box multiargument multiparametric function of the type SRD[dataPoint_List,params_List] which accepts experimental data along with the parameters of ...
2
votes
0answers
113 views
Why my Mathematica 9.0.1 wont work with some samples of Mathematica in Graph Theory?
I updated my Mathematica recently to 9.0.1 cause the previous version was giving me freaky result especially in FindMinimumCostFlow and ...
4
votes
0answers
83 views
When using NMinimize[…,Method->“DifferentialEvolution”] is an “iteration” different than a “step”?
Hopefully this question has a simple answer. I have the following bit of code:
...
0
votes
0answers
55 views
Does setting FindMinimum constraints improve efficiency? [closed]
I am a newbie and this my first post.
I am using the FindMinimum function to minimize a function of between $19$ and $35$ variables and I do this about $200$ times ...
0
votes
0answers
33 views
2
votes
1answer
126 views
0
votes
0answers
93 views
Minimize multivariable function with respect to one variable [closed]
I'm trying to minimize a user function. It's signature is, ptrans[n_, k_, h1_, h2_, fm_, em1_, f_, t0_]. I want to minimize it with respect to ...
5
votes
1answer
330 views
Multi-objective genetic algorithm in Mathematica?
Is there any implementation of a multi-objective genetic algorithm for Mathematica?
2
votes
1answer
95 views
How can I change the MPS format in Linear Programming samples of Mathematica?
I am trying to play with some linear programming examples of Mathematica as ExampleData[{"LinearProgramming", "blend"}, "Equations"]. It gives me the MPS format of ...
4
votes
1answer
74 views
Minimize failing on a polynomial
Calling:
Minimize[{-0.4877 - 0.1190 r^2 - 0.1885 r^4 + 2.9703 z - 0.5531 z^2,
0 <= z <= 3.5 ∧ 0 <= r <= 1.75}, {r, z}]
returns ...
5
votes
1answer
127 views
FindMaxValue specifics
I'm using FindMaxValue to study the distribution of maxima of Abs[RiemannSiegelZ[t]] between consecutive values of ...
1
vote
1answer
67 views
List comparison in constraints for Minimize
I am trying to solve an optimization problem, a simplified version of which is as follows:
...
1
vote
1answer
151 views
How can I fit a matrix function with multiple variables to given eigenvalues?
I have a 5x5 matrix function H[kx]
...
3
votes
3answers
231 views
How to find the minimum of this constrained expression?
Let $x$, $y$, $z$ be three nonegative real numbers and $x^2 + y^2 + z^2 = 5.$ Find the minimum of the expression
$$E=\dfrac{1}{2}x^2 y^2 + y^2 z^2 + z^2 x^2 + \dfrac{96}{x + y + z + 1}.$$
I tried
...
1
vote
0answers
204 views
Methods for NonlinearModelFit
I am using NonlinearModelFit for a thesis project.
I get quite different results if I change the Method to LevenbergMarquardt or QuasiNewton or ConjugateGradient ...
0
votes
0answers
81 views
Function Nodal2`NodalNetwork is not evaluating [closed]
I am using a default package Nodal2.m for nodal analysis of a Voltage Controlled Current Source, but it's giving the same statement back in output instead of Y ...
3
votes
1answer
105 views
Distance between two functions satisfying a constraint
My problem is that I have two functions that are described as follows:
...
10
votes
4answers
415 views
Finding Local Minima / Maxima in Noisy Data
I'm trying to find local minima / maxima in noisy data, consisting of data values taken at certain time intervals. Ideally, the function should take a pair of lists (one containing time values and one ...
1
vote
1answer
67 views
How does FindShortestTour work?
How are FindShortestTour and the algorithms therewithin implemented internally?
Also: Can I access some form of incremental, in-progress result during evaluation? ...
0
votes
0answers
35 views
How can I increase the number of iterations for NMinimize? [closed]
How can I increase the number of iterations until convergence is assumed for NMinimize? Why does it strictly quit-out after 100 iterations?
0
votes
1answer
98 views
How to find the global maximum of a function? [closed]
I tried the following but plotting the function clearly reveals that there is a global maximum around $r = 7$ (here $a = 0.53$)
...
0
votes
1answer
106 views
Inequalities with assumptions and constraints
I'm using Mathematica 8
I've been searching the net without luck for this specific solutions:
Suppose I have an inequality f(x;M,m)>0 where I KNOW that M>4m and m>0. How can I let Mathematica know ...
1
vote
2answers
175 views
Area of the largest rectangle bounded by $y=x^2$ and the x-axis within the unit interval
I am trying to find the area of the largest rectangle (whose sides are parallel to the coordinate axes) contained in the region bounded by the graphs of $y = 0, y = x^2,$ and $x = 1$ using ...
4
votes
0answers
101 views
Speeding up multilinear PRA branch-and-bound algorithm with worst-case exponential time scenario with respect to basic events
The algorithm is a branch-and-bound algorithm that calculates dominances for PRA, probalistic risk assessment. The task was to find faster ways to do it in numerical software such as Matlab but we ...







