minimization Questions
19
Solved
I've been practicing for an upcoming programming competition and I have stumbled across a question that I am just completely bewildered at. However, I feel as though it's a concept I should learn n...
Achromatin asked 26/2, 2010 at 2:20
2
I was wondering how I can choose the best minimization method for scipy.optimize.minimize and how different the results may be?
I am trying to minimize the following expression (solve for g):
|a1...
Sealey asked 19/11, 2019 at 2:2
1
I am using scipy.optimize.minimize to find the optimum value from a function. Here is the simplest example, using the built-in Rosenbrock function:
>>> from scipy.optimize import minimiz...
Appall asked 15/12, 2015 at 10:3
2
Solved
Goal is to minimize a function over a range of input values. Performance matters.
Unfortunately, the ranges::min() algorithm recomputes the output for the live optimum over and over again.
It seems...
Neocene asked 5/12, 2022 at 21:8
11
Solved
I have a (potentially large) list data of 3-tuples of small non-negative integers, like
data = [
(1, 0, 5),
(2, 4, 2),
(3, 2, 1),
(4, 3, 4),
(3, 3, 1),
(1, 2, 2),
(4, 0, 3),
(0, 3, 5),
(1,...
Moe asked 15/4, 2022 at 16:34
1
I am looking for a Python equivalent of MATLAB's patternsearch optimization algorithm. I ran through the SCiPy documentation but did not find something similiar.
Do you know whether there is some p...
Dolor asked 29/7, 2016 at 13:23
4
Solved
I am trying to find the local minimum of a function, and the parameters have a fixed sum. For example,
Fx = 10 - 5x1 + 2x2 - x3
and the conditions are as follows,
x1 + x2 + x3 = 15
(x1,x2,x3) >...
Djebel asked 27/5, 2015 at 22:20
1
Solved
I am trying to minimize a function defined as follows:
utility(decision) = decision * (risk - cost)
where variables take the following form:
decision = binary array
risk = array of floats
cost = ...
Woodnote asked 17/3, 2020 at 15:35
1
Solved
I have a set of data which I am interpolating with kind = 'cubic'.
I would like to find the maximum of this cubic interpolation function.
Currently what I am doing is just find the maximum value ...
Radioelement asked 16/5, 2018 at 12:42
1
I am trying to solve an optimization problem where I need to create a portfolio that with a minimum tracking error from benchmark portfolio and it's subject to some constraints:
import scipy.optim...
Intervalometer asked 15/8, 2017 at 16:17
1
Solved
I need to minimize H in following equation:
Where H is 3x3 Matrix.
Pn is 3x1 matrix (point).
Euclidean() gives distance between 2 points.
Dn is the actual distance.
I have one initial estimate...
Prominence asked 10/2, 2017 at 10:38
1
Solved
I have a homgraphy matrix
[h1 h2 h3
h4 h5 h6
h7 h8 h9]
I have transformed a point
p1 to P1 using above homography matrix.
Similarly
p2 to P2
p3 to P3
p4 to P4
I know the diffence betw...
Yellow asked 10/2, 2017 at 6:21
1
Solved
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 t...
Paladin asked 19/7, 2016 at 18:29
1
I have different dimension of small rectangles (1cm x 2xm, 2cmx3cm, 4cm*6cm etc). The number of different type rectangles may vary depending on case. Each type of different rectangles may have diff...
Hedonics asked 22/1, 2016 at 6:21
10
I'm working on an algorithm which goal is to find a minimum set of packages to install package "X".
I'll explain better with an example:
X depends on A and (E or C)
A depends on E and (H or Y)
E ...
Wheelock asked 25/5, 2015 at 0:30
4
I have a function which is actually a call to another program (some Fortran code). When I call this function (run_moog) I can parse 4 variables, and it returns 6 values. These values should all be ...
Lonnielonny asked 24/4, 2015 at 19:25
1
Solved
I try with fmin_bfgs to find the local minimum of the absolute function abs(x). The initial point is set to 100.0; the expected answer is 0.0. However, I get:
In [184]: op.fmin_bfgs(lambda x:np.a...
Automation asked 17/1, 2015 at 17:19
1
Solved
Trying to solve a simple non linear minimization problem with one variable.
from scipy.optimize import minimize
import math
alpha = 0.05
waiting = 50
mean_period = 50
neighborhood_size = 5
def m...
Hinshaw asked 12/8, 2014 at 16:59
8
Solved
I had been interested in neural networks for a bit and thought about using one in python for a light project that compares various minimization techniques in a time domain (which is fastest).
Then...
Tugboat asked 16/3, 2009 at 21:53
2
I have a number of short time-series ( maybe 30 - 100 time points ), and they have a general shape : they start high, come down quickly, may or may not plateau near zero, and then go back up. If th...
Trygve asked 25/2, 2014 at 23:31
1
Solved
I was looking for a minuit equivalent on Python 2.7 and I found this two variants:
PyMinuit and
iMinuit.
My question is: what's the difference between them?
Both uses Seal 1.7.9 Minuit and in a f...
Codeclination asked 5/9, 2013 at 21:31
3
Solved
Basically, given a function that produces outputs like this for different parameters:
I want to quickly find the first x at which the function equals 0. So with parameters that produce the blue ...
Heterogamy asked 11/4, 2013 at 23:27
1
Solved
This is my first post to stackoverflow, so if this isn't the correct area I apologize. I am working on minimizing a L1-Regularized System.
This weekend is my first dive into optimization, I have a...
Suffrage asked 5/1, 2013 at 21:44
2
Solved
A common pattern in ProGuard configs for Android applications is to preserve custom View classes, since they are probably referenced only from layout XML instead of application code.
Upon project ...
Ji asked 26/4, 2011 at 20:45
2
Solved
I'm looking for a drop-in replacement of Ruby's Marshal capability, which hopefully has one or more of the following advantages over Marshal:
faster serialization/deserialization
more concise (or...
Ferd asked 22/6, 2010 at 18:49
1 Next >
© 2022 - 2025 — McMap. All rights reserved.