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

Minimizing a threshold in Scipy

I would like to minimize a threshold using the scipy minimize function. This is a constrained minimization where my constraints are the output of the kernel ridge predictor function. To be more precise, I have a data set, I train the Kernel Ridge…
MadProgrammer
  • 423
  • 1
  • 5
  • 17
0
votes
1 answer

Linear minimization program with ZIMPL

I am trying to make a linear minimization program with ZIMPL. In principle, I must have a minimum number of configurations for each class. Knowing that I have six classes, don't I normally have to get 6 results as output? But when I do it makes me…
t.so
  • 1
  • 2
0
votes
0 answers

Is it possible to output stepwise function values in minimization (scipy)?

I want to minimize some function J using gradient information. I found two functions in scipy that may do the job, scipy.optimize.fmin_tnc (here) and scipy.optimize.minimize (here), and I implemented them. However, now I need the stepwise output of…
tomka
  • 2,516
  • 7
  • 31
  • 45
0
votes
0 answers

Optimisation to minimse distance between nearest neighbours Matlab

I have identified nearest neighbours amongst a population. I wish to assign a vector of weights to the population such that the difference in weights between nearest neighbours is minimised via an optimisation. I have…
Mary
  • 788
  • 6
  • 19
  • 43
0
votes
0 answers

Deviation minimization of ordering several objects with different values

I have a periodic task set in which each task has an execution time, period (equals to deadline) and weight T_i(c_i, d_i, w_i). Tasks' weight may be a positive or negative number. W(t) is the sum of scheduled tasks' weights till time instant t.…
Mahmoud
  • 883
  • 7
  • 17
0
votes
2 answers

minimizing run time by ordering scripts to run in the right order

I am using scrapy and scrapyd to crawl some content. I have 28 crawlers that run, but only 8 at a time. Each crawler takes from 10 min to several hours to complete. So im looking for a way to order them correctly, in order to minimize the time the…
0
votes
1 answer

MATLAB 2014b fminunc provide gradient

How can I provide the gradient of the function when using the unconstrained minimization solver fminunc as the following options provided in the online documentation of the solver options =…
S_S
  • 1,276
  • 4
  • 24
  • 47
0
votes
4 answers

Minimize html, doubts and questions

Minimizing html is the only section on Google's Page Speed where there is still room for improvement. My site is all dynamic and the HTML is already Deflated so there is no reason to put any more pressure on the server (I don't want to minimize…
Frankie
  • 24,627
  • 10
  • 79
  • 121
0
votes
1 answer

How to minimize a function without using a loop

I have a function (ExpSemivariance) that creates a vector of 11 elements. This elements are then represented on a graph in a scattered diagram and I intend finding the curve (Theoretical) that best fit 'ExpSemivariance' by using mimimum residual (in…
user3185171
0
votes
0 answers

Using Matlab's intlinprog (mixed-integer linear programming) for multi-objective optimization?

I have previously used MATLAB'S intlinprog solver to minimize one variable, x. Is there a way to use the same solver to minimize two variables at once (aka, both x AND y simultaneously)? Quick description of intlinprog
K. Graham
  • 13
  • 5
0
votes
1 answer

SciPy minimize with gradient

This is an implementation of logistic regression, using a toy data set. Some feedback from @dermen helped me fix a basic problem with how I was using scipy.optimize.minimize but even after fixing that issue, optimize fails to converge, even just…
LiavK
  • 702
  • 6
  • 20
0
votes
1 answer

Uncertainties / errors for non-continuous minimizer in Octave

I am currently using fminsearch to minimize a non-continuous function, with x = vector of 7 variables. It works well but has two problems (for me): 1) it is slow, 2) more importantly it doesn't return any uncertainties / errors for the variables in…
user46655
  • 11
  • 7
0
votes
0 answers

Minimizing expected value using a multivariate normal distribution Matlab

I am trying to minimise the expected value of this function w.r.t the variable Q : where f(D) is the probability density function of a multivariate normal distribution, c0 and cu parameters. This is what I have done so far : syms X1 syms X2 syms…
Giovanni
  • 1
  • 2
0
votes
1 answer

Extremize function in 4D space (minimize with respect to two variables, maximize with respect to other two variables) in MATLAB

Using MATLAB, I am trying to find a saddle point of a function in 4D space. More specifically, the function is f(x,y,z,w) and I need to find its minima with respect to x and y and maxima with respect to z and w. In other words, the saddle point in…
0
votes
2 answers

oneVsAll in python with fmingc : Iterations: 0

I am trying to implement in Python one of the assignments of the ML Coursera (recognition of handwritten digits). Here are the cost, gradient and onevsall functions (includes regularization term): def costfn(theta, *arg): X, y, reg_factor = arg …
JMarc
  • 984
  • 1
  • 13
  • 21