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.
Questions tagged [minimization]
529 questions
0
votes
1 answer
Minimization of number of itererations by adjusting input parameters in Java
I was inspired by this question XOR Neural Network in Java
Briefly, a XOR neural network is trained and the number of iterations required to complete the training depends on seven parameters (alpha, gamma3_min_cutoff, gamma3_max_cutoff,…

Stepan
- 1,391
- 18
- 40
0
votes
1 answer
Matlab non-linear binary Minimisation
I have to set up a phoneme table with a specific probability distribution for encoding things.
Now there are 22 base elements (each with an assigned probability, sum 100%), which shall be mapped on a 12 element table, which has desired element…

flok3r
- 1
- 1
- 2
0
votes
0 answers
GNU Scientific Library: cannot find minimum despite being in range
I am trying to find the minimum of a function of mine using C++. However, upon attempting to run the code, I am returned the following error:
gsl: fsolver.c:117: ERROR: x_minimum must lie inside interval (lower < x < upper)
Despite knowing that my…

kalle
- 425
- 1
- 6
- 17
0
votes
1 answer
select optimal column vector from a matrix subject to a localised goal vector constraint
How to automatically select the column vector of a matrix within which the scalar values in a subset of elements is closest to those in a predefined goal vector of the same sub set?

eaglemckenna
- 9
- 1
0
votes
0 answers
minimize an anonymous function via fminunc with two inputs vectors (matlab)
You can minimize a function using fminunc like this:
x = linspace(-2,2,1000);
f0 = -x.^2;
ftest1 = @(a) a(1)*exp(-a(2)*x.^2);
fmin1 = @(a) trapz(x,(ftest1(a) - f0).^2);
[a1,fval] = fminunc(fmin1,rand(1,2));
plot(x,f0,x,ftest1(a1));
Is…

anon01
- 10,618
- 8
- 35
- 58
0
votes
2 answers
Optimize mysql query joining table
Please advice how to optimize below query and minimize query loading..
$query = "select
…

Gua Syed
- 177
- 1
- 5
0
votes
2 answers
Integrating gulp in building .war file
I am interested in minifying and concatenating the css and js files of my application.
I am able to automate this with gulp, as outlined in this tutorial:
https://travismaynard.com/writing/getting-started-with-gulp
I am using netbeans to generate…

theyuv
- 1,556
- 4
- 26
- 55
0
votes
1 answer
How can Minizinc be used to solve a weighted constraint satisfaction problem_?
Given a weighted constraint satisfaction problem (X, C, k) where X is a set of variables, C is a set of soft constraints and k > 0 is an integer or infinity; how can this be translated into a minizinc source file?
Each constraint in C is a function…
0
votes
1 answer
To minimizing the sum of two distances from the number
I have a homework. The homework is like that
There is the number X, and array A and array B whose data type is int. and I should find the A[I]+B[J](0<=I<=A.length, 0<=J<=B.length) which is closest to X.
First, I tried to find the answer by testing…

Volnyar
- 11
- 4
0
votes
1 answer
How to return parameters from all iterations of spicy.optimize.minimize
I am using scipy.optimize.fmin to optimize the Rosenbrock function:
import scipy
import bumpy as np
def rosen(x):
"""The Rosenbrock function"""
return sum(100.0*(x[1:]-x[:-1]**2.0)**2.0 + (1-x[:-1])**2.0)
x0 = np.array([1.3, 0.7, 0.8, 1.9,…

Ellis Valentiner
- 2,136
- 3
- 25
- 36
0
votes
1 answer
Minimization using a Greedy Algorithm
Theres a problem such that there are n houses a1,...an on a straight line. You want to build facilities such that each house is at most distance X from a facility. There are p locations b1,...bp that the facilities can be built.
I am trying to…
0
votes
1 answer
2-Dimensional Minimization without Derivatives and Ignoring certain Input Parameters on the go
I have a Function V which depends on two variables v1 and v2 and a parameter-Array p containing 15 Parameters.
I want to Minimize my Function V regarding v1 and v2, but there is no closed expression for my Function, so I can't build and use the…

MrBaer
- 13
- 3
0
votes
1 answer
ContrOptim Function- Error in Argument
I'm trying to replicate the Excel Solver in R- which is basically a constraint optimization problem
I'm trying to minimize the cost per action which is total spend/ total actions which equals to the below function with a few constraints.
CPA…

Mariam Z.
- 21
- 1
0
votes
1 answer
Algorithm to find a value that gives the minimum output for two or equations
Suppose I have two equations with only one variable (free parameter) x and that k1 and k2 are constants. I would like to solve for:
f(x) + k1 = 0
&
g(x) + k2 = 0
...
h(x) + kn = 0
Of course there is no value of x that satisfies all of these…

user5091415
- 3
- 1
0
votes
1 answer
Matlab fit 3D data points with implicit function
I am trying to fit 3D data points (>1000) with the implicit function of a cylinder (5 parameters : a,b,c,d,r) :
-r +…

B.jour
- 523
- 1
- 5
- 10