# All Questions

28 questions
Filter by
Sorted by
Tagged with
119 views

### Find maximum according to a parameter

I am new to Mathematica. I want to find the maximum of the functions: ...
60 views

### Transpose Error

I have this code: ...
36 views

### Why am I getting errors from NMaximize? [closed]

I tried to use the function that is given in 1 in order to get the FWHM of some expression I got from solving a system of linear equations. This is the function for calculating FWHM: ...
100 views

### Getting error 'InterpolatingFunction::dmval' while trying to find the maximum of an interpolated function

The code I used is ...
53 views

### How to optimize this script?

fx8350, 16Gb ram just need to solve this: 13, 19, 19, 16, 26, 33, 26, 31, 5, 24, 21, 34, 35, 35, 35, 20, 7, 12, 18, 17, 6, 8, 15, 24, 2, 17, 15, 22, 29, 15, 21
130 views

### “Forcing output of a function to be Real in Mathematica” Non-linear optimization

I am trying to solve a Nonlinear optimization problem with Mathematica. Since the maximization problem includes exponentiation with fractional power, the result generates the complex numbers that stop ...
84 views

### solving the game of fiver

Up to an error by myself, the following code is an implementation of the mixed integer linear programming of the game of Fiver : ...
103 views

### Non-linear optimization giving error NMaximize::nrnum [closed]

I am trying to solve the following non-linear optimization problem: Here is my code: ...
74 views

### FindMinimum giving error FindMinimum::infeas:

I'm trying to find the minimum y-coordinate of a point which lies on a side of an equilateral triangle. FindMinimum doesn't work when I change the position of the ...
142 views

### How do I use FindMinimum with the LevenbergMarquardt method?

Below is my program. I don't know how to define the function f to make it work. Another question: When I define f as a vector ...
40 views

### Function with numerical integrals, Plot3D works but NMaximize doesn't [duplicate]

I have the following problem: I have a function enter code hereH depending on two numerical integrals g and ...
90 views

### FindMinimum yields result, but still issues MachinePrecision digits error [closed]

I'm writing a bit of code for a project. I am attempting to find the minimum x-value for a function, which I did get, but Mathematica still threw an error at me. My code is as following: ...
113 views

### Getting error NMinimize::nnum: in quantum physics code [closed]

The following code generate the error: NMinimize::nnum: The function value Ω[42/125, 0,1.91862121487240651285721, 1.71668875337901960520526] is not a number at {Δ, Σ} = {1.91862121487240651285721, ...
168 views

### Need advice on how to use FindFit

I have written the following code in Mathematica ...
36 views

### Minimize Function working online but not on desktop

Minimize[((2 p + 1)*Log  + (2 p)*Log [p] + (2 - 2 p)* Log [(1 - p)])*(-(2 p)*Log[p] - (1 - 2 p)*Log[(0.5 - p)])^-1, p] This function is working online but ...
67 views

### Finding the Maximum Value of a Function as an algebraic expression

I am trying to use Mathematica to find the following maximum value: $$\max_{0<\lambda< 1}\left| \frac{\lambda^{1-2p}}{(\lambda+\alpha)^2}\right|$$ where $0<p<1/2$ and $\alpha>0$ I ...
245 views

### Getting message Maximize::ztest: — how should I deal with it?

I am working on a maximization problem of the form Maximize[{f, cons}, {x, y, ...}] Mathematica outputs a warning and a result. The warning is Maximize::ztest:...
63 views

### Trying to Minimize the following function but getting “scalar-valued” error

I have a setting where I have written down an obj function as follows: ...
80 views

### Why am I getting different answers for expressions containing x^(1/2) and x^(0.5)?

I'm doing a constrained optimization function, where I maximize a function with two arguments subject to a simple constraint: ...
96 views

### How to find a maximum?

FindMaximum[1/2*Abs[(o - u)^2/(1 + o^2 + u^2 + 2*o*u + 2*o^2*u^2)]^2, {o, u}] doesn't work. It gave me that : FindMaximum::fmgz: Encountered a gradient that ...
230 views

### Goal optimization: finding the best combination of capacitors and resistors resulting in given properties

I want to edit @MarcoB answers (because the code he gave doesn't answer the question appropriately)->(the function that need to be optimised is not implemented as asked) But it seems like I am having ...
141 views

...
198 views

### NMinimize error: Nearest::neard:

I have this function GuessError, here's a plot assuming a single variable x, Plot[GuessError[10^x, etc..], {x, 8, 12}] , being etc some more variables which are ...
330 views

### Minimization Nminimize nnum error

I have imported data (mat is the name, 1x100 dimensional vector)and written a likelihood function for normal distribution. ...
333 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 "...
579 views

### Maximizing Large Multivariable Function over Region with Parameter Constraints

Brand new Mathematica user here. I have a complicated function to maximize, and thought I would try software like Mathematica instead of taking derivatives by hand. I found some Mathematica ...