Questions tagged [minimization]

Minimization is a subclass of mathematical optimization where given a cost or objective function, the goal is to choose the best set of parameters that will minimize the value given by this function.

529 questions
0
votes
0 answers

Matlab Multivariable Minimization

I'm trying to develop the adaptive unsharp algorithm described by Polesel et al. in the article "Image Enhancement via Adaptive Unsharp Masking" (link to the article). The core of the algorithm is the minimization of a cost function defined…
BugsFree
  • 540
  • 1
  • 6
  • 24
0
votes
2 answers

How to print a value associated with a minimized residual - Python

I have a simple algorithm for computing the residuals of a mathematical model and some experimental data with noise. The objective is to find the phase if the amplitude and frequency are known. The algorithm loops over all phase values (to a…
Gary
  • 55
  • 1
  • 6
0
votes
1 answer

Alternative optimization Tool to fmincon

i am currently trying to minimize a function with linear inequality and equality constraints. The Problem is that fmincon (MATLAB Tool) can not find a feasible solution. I already tried to do everything from the list:…
Toffikeks
  • 1
  • 1
0
votes
1 answer

Minimize a function in matlab where the variable of the function is a vector in R^n

I have to minimize transpose(x)*A*x ./ transpose(x)*B*x function where x is a vector, A and B are matrices. Is there a function in matlab that will minimize it? Thanks
aregak
  • 137
  • 4
  • 9
0
votes
1 answer

Optimization (with scipy.optimize.minimize) with multiple variables

I want to implement the Nelder-Mead optimization on an equation. But it does not contain only one variable, it contains multiple variables (one of them which is the unknown, and the others known.) For instance at this…
DimKoim
  • 1,024
  • 6
  • 20
  • 33
0
votes
0 answers

C++: Minimization Using Levenberg Marquardt to Solve for Two Variables

I am trying to solve this equation using C++: X and Y are both given sets of data. X = [x1, x2, ... , xn], Y = [y1, y2, ... , yn] a is a given integer. The goal is to find a pair z and k that fulfills this equation based on the given data. I am…
0
votes
0 answers

Minimization distinction translations in 2 directions

I would like to do a minimization and so determine some parameters and one which represent some translations. But i have translations in X and Y directions. I would like to know if it s possible to distingish them? Currently i have the "A2"…
user3601754
  • 3,792
  • 11
  • 43
  • 77
0
votes
0 answers

matlab linear least squares of matrices

Given the equation of perspective projection of a set of 3D points in an image: lambda_ij * x_ij = P_i * X_j; how can one estimate the optimal values of lambda matrix using linear least squares given that: x_ij is 3 by n matrix P_i is 3 by 4…
Gamba Osaca
  • 307
  • 1
  • 4
  • 17
0
votes
1 answer

Use of solver to minimise an vba function (instead of an excel cell wrt other excel cell)

I want to minimise the function myFunction by changing the values of alpha. In this dummy example, I expect alpha = X (= 3). To do so, I want to use the Excel Solver, and avoid copying part of the code in the sheet. This code is part of a Least…
Nielsou Akbrg
  • 201
  • 3
  • 13
0
votes
1 answer

Matlab minimize norm to find coefficients using fminsearch

I am trying to use minimization to calculate coefficients of the polynomial p(x) = 1 + c(1)x + c(2)x^2 to approximate e^x. I need to use points xi = 1 + i/n for natural numbers i on [1,n], first for n=5, then n=10, etc. The approach is to minimize…
LuckyPenny
  • 39
  • 6
0
votes
2 answers

Determine Dialog Minimization from within a control

Is there any way to determine a minimization of a Dialog from within a control which is on the dialog? I'm using the window message ON_WM_SIZE which should be called with the Type SIZE_MINIMIZED when the dialog gets…
Vinz
  • 3,030
  • 4
  • 31
  • 52
0
votes
2 answers

Find minimum of following function in Matlab

I am trying to minimize sum((A-r*B).^2) in Matlab where A and B are matrices and r is the scalar I am manipulating. I tried the following code: f = @(r) sum((A-r*B).^2); Answer = fminbnd(f,lowrange,highrange); But I get an error.
Jimmy Xiao
  • 156
  • 5
0
votes
4 answers

Catch JavaScript errors from compressed files

I catch JS errors by subscribing to window.onerror event, so if someone catches 'undefined variable' error, I send it to server for debugging purposes. As you know this event return 'message of error', 'url' and 'line' where error occurred. The…
Denis
  • 2,429
  • 5
  • 33
  • 61
0
votes
1 answer

Matlab fmincon Not Yielding Global Maximum/Minimum

I am new to matlab, apologies if the question is silly. I am using the fmincon function to derive the elements of a matrix (X) which will maximize the following objective function subject to the non-negativity constraint and: where In the code…
0
votes
0 answers

Unbounded error with CPLEX for quadratic programming solver

I have a quadratic problem which is diagonal only and all diagonal elements are positive If I optimise (minimise) using default parameters it fails saying that it is unbounded. However this is simply not possible. I attach a link to the LP file…
Dom
  • 160
  • 11