Questions on the optimization functions of Mathematica such as FindMinimum/FindMaximum, Minimize/Maximize, NMinimize/NMaximize, etc.

learn more… | top users | synonyms (2)

0
votes
0answers
38 views

How to properly pass function as argument here? --> NMinimize & NIntegrate involved

I had a problem of a similar kind here which was solved. Now after changing a few things in my problem setting I am suffering from the following problem. Let me first introduce methods/functions that ...
0
votes
0answers
32 views

Find minimum summation and constraint values [on hold]

how can I get mi value to minimize this equation..?
-2
votes
0answers
23 views

Assigning values to constants after solving a set of differential equations [on hold]

I solve the equations of 40 variables. Three of the equations are differential equations. Therefore, it is a set of differential algebraic equations. This is the following set of equations: ...
-1
votes
0answers
26 views

Interpretation of the decimal symbol? [on hold]

I have the following code: ...
0
votes
0answers
18 views

handling the logistics function [on hold]

I have the problem, I have to handle the logistics function at two points. That is my initial and final cordenas cordenas. But do not know how to apply that formula. As would be the formula for this ...
1
vote
1answer
38 views

Getting result from Maximize

I'm trying to get maximization result from Maximize function to use it in later calculations. At the moment I use the following code: ...
6
votes
1answer
170 views

How trustworthy is NMaximize?

Suppose I solve a constrained optimisation problem using NMaximize. How confident can I be of the accuracy of the result? For concreteness, suppose that F,G are ...
0
votes
0answers
18 views

Variables input generation for Minimization in High dimensional space

I'm currently doing optimization in a high dimensional space. I was thinking of giving FindMinimum (or NMinimize not certain ...
13
votes
1answer
649 views

Is Mathematica `ContourPlot` function really so efficient?

I wanted to find the roots of the function $f(x,y)=\sin(3.2x)\sin(1.3y)-2.1 \sin(1.3x)\sin(3.2y)$. This is what the function looks like: ...
0
votes
0answers
20 views

Tricks to speeding up optimisation of a function involving a heavy integration

This is the code, and energycoeffs[] is the function that takes in a dxd matrix and spits out a scalar value. ...
0
votes
0answers
35 views

Problem with the laplace transform

I am trying to write a program in mathematica to solve green's functions, like the following. They come up all the time in Quantum Field Theory. I have learned, student's can sometimes see it better ...
0
votes
0answers
22 views

Iterating a model with 2nd order difference equations using Manipulate [duplicate]

I have a model including first and second order difference equations. It works for the case of first difference equation, which is below: ...
2
votes
1answer
59 views

Simple-looking Minimize takes for ever

Consider the following: Minimize[{(ξ - x)^2 + (η - y)^2, a ξ + b η == c}, {ξ, η}, Reals] After asking Mathematica to do this yesterday afternoon and forgetting ...
1
vote
2answers
85 views

optimization of CountourPlot with NIntegrate

I have to use ContourPlot with a complicated function depending on 2 parametrs (that I cannot report here) that contains numerical integrations. Here is a simple ...
1
vote
1answer
99 views

Using FindMinimum with matrix input

I define the following function which spits out a number S when I feed it a dxd square matrix: ...
1
vote
0answers
55 views

How to plot feasible objective space of a Generic Multiobjective Optimization problem?

As you know, a generic Multiobjective optimization problem can be stated as follows: $min{\space}F(\bf{X})=[f_1(x),...,f_n(x)]$ $h_k(x)=0{\space\space\space} k=1,...,n_e$ ...
4
votes
0answers
52 views

Packages for Semidefinite programming

This question has already been asked here. I am not sure, whether I should have asked this question as a comment of an old question or in the general programming forum of stackexchange. Moderators ...
-1
votes
1answer
53 views

Black Ovals appeared in my Mathematica notebook [duplicate]

I copied and pasted something from another Mathematic notebook and started getting the same black ovals seen in this question: Colored marks appearing in notebook input text? The suggestion to turn ...
1
vote
2answers
79 views

Does FindFit use symbolic differentiation?

Does FindFit use symbolic differentiation when optimizing by least squares a non-linear function?
0
votes
0answers
30 views

Minimize doesn't solve a problem with many symbols

I am trying to solve a simple constrained optimization problem. I am running the code ...
4
votes
0answers
118 views

How to determine reason for kernel crash? -> Nelder Mead optimisation

I am making use of the Nelder Mead algorithm inside Mathematica's NMaximize to find a parameter set by solving the Schrodinger equation for a given system. (see ...
1
vote
2answers
54 views

Maximum likelihood estimation based on frequency table

I have a frequency table of grades, I'm trying to estimate the distribution as a truncated normal distribution (a grade below 65 is a failing grade and doesn't count). Since I don't have the actual ...
0
votes
0answers
44 views

Nash equilibrium in game theory?

Are there examples of the solution of Nash non-cooperative games with mixed or pure strategies? How could be implemented in Mathematica 10?
-1
votes
1answer
63 views

My code of plotting a two-variable function is too slow [closed]

I have a code in which my complicated function to be plotted is F(x,p). I would like to graph it for 5 values of p equal to 10^7, 10^8, 10^9, 10^10 and 10^11 for x values between 0.01 and 0.99. All ...
1
vote
1answer
77 views

How to properly apply NumericQ or s.th. similar here? - NDSolve inside NMaximize

I wrote a function that numerically solves a given Schrodinger equation and returns replacement rules to obtain the time evolution operator. It looks and is used as follows: ...
1
vote
1answer
71 views

How to find Lagrange multipliers corresponding to constraints?

I have a constrained optimisation problem that I solved using Mathematica's FindMinimum function. I would like to know how to get the dual variables corresponding to the constraints I have. Obviously ...
0
votes
0answers
45 views

Set first line in CSV as header in mathematica list

New to stackexchange. Need some help with mathematica - also new to this!. I have a CSV file with 80 something columns and 6000 something rows = 500,000ish elements in total. I am trying to import ...
0
votes
0answers
32 views

How to solve a multi-vector optimization problem efficiently?

How to efficiently solve a optimization problem which involves multiple vectors? My optimization problem is: $\min_{\bf{K}_{i}} \sum_{i<j}\left[\bf{t}\cdot(\bf{K}_i-\bf{K}_j)\right]^2$, s.t. ...
0
votes
1answer
70 views

NMaximize against LinearProgramming [closed]

i'm starting my studies of Operational Research with Mathematica and i'm stuck on a problem with 12 variables. In fact, I was able to solve the problem using ...
0
votes
0answers
97 views

How to speed up my code with constructing matrices

I have run this program for a long time to get the result for n = 2048(about 5hours) and no more result till now (can't run with n = 4096). I would know how to make it more efficient. Any help or ...
0
votes
1answer
95 views

How to determine if directories with executable permission and not

I have some directories that have the UNIX executable permission some does not. What tests could I write in Mathematica to test it?
0
votes
1answer
48 views

Search optimum on connected simulation

Do you know how can I find minimum/maximum of a simulation written in a Module. The simulation calculates a potential value to a territory after some steps. It would seem like this: ...
2
votes
1answer
103 views

Symbolic quadratic constrained maximization with non-negativity constraints?

Dear Mathematica users, I attempted to maximize the below quadratic function K, subject to x1+x2<=A, and a series of ...
8
votes
3answers
274 views

Collatz optimization

I'm VERY new to Mathematica programming (and by new I mean two days), and was solving Project Euler question 12, which states: Which starting number, under one million, produces the longest ...
-1
votes
1answer
139 views
7
votes
0answers
125 views

Bug in plotting function using FindMinimum?

Bug introduced in 10.0.1 (or 10.0.0) and persisting through 10.0.2 or later While working on an answer to RegionPlot from NDSolve, I came across this strange behavior of ...
1
vote
1answer
64 views

Why does NMaximize does not follow the constraints that were given to it?

(someone may want to mark it as a duplicate, but I still have to ask! I just can't figure out why!) ...
1
vote
1answer
83 views

The problem (time) caused by ?NumericQ

In here, I asked a related (similar) question. Using ?NumericQ seems have slowed down the entire calculation. But I now have a more serious problem: ...
1
vote
0answers
67 views

What are the differences between these functions when used for NMaximize?

In short, the question is how to construct the function you want to optimize? ...
0
votes
0answers
33 views
0
votes
0answers
31 views

Maximization of n-variable and n-constraint in matrix form

I am trying to do some maximization using matrix algebra: very simple one is with n = 3 as the following: ...
1
vote
2answers
85 views

Incorporating the minimum and maximum of the function in a Dynamic plot

I'm working on my project for class and it's supposed to be a graph that can take functions from the user and display it along with finding the max and min of the graph. But I just don't know how to ...
0
votes
0answers
64 views
0
votes
0answers
36 views

3D Ploting in Mathematica Function is getting smeared [duplicate]

A = x^2 + y^2 + Sqrt[x^2 + y^2]; B = x^2 + y^2 - Sqrt[x^2 + y^2]; Plot3D[{B}, {x, -1.5, 1.5}, {y, -1.5, 1.5}] I want to remove this sky blue region from the ...
0
votes
0answers
52 views

NMinimize tries to find the fit to paramters which are not in the objective function

Consider the codes below: fun[x_] := (x - 4)^2 NMinimize[{fun[x]}, {x, y}] it returns: ...
1
vote
1answer
60 views
0
votes
0answers
60 views

Constrained Nonlinear Optimization with expectations functions in the constraints

I am modeling an optimal compensation contract with a CRRA utility function : ...
0
votes
0answers
81 views

Optimiazation method L-BFGS-B

I am comparing a result of optimization using R and Mathematica. Mathematica (NMaximize) has found a significantly better (global optimum) result then R (using ...