Tagged Questions
0
votes
1answer
213 views
CVXOPT output suppression with MOSEK
I'm using the optional MOSEK solver with CVXOPT Quadratic Programming, i.e.
sol = cvxopt.solvers.qp(-Q,-p,G,h,A,b,solver='mosek')
Now without using the MOSEK solver, i.e.
sol = ...
2
votes
3answers
101 views
Quickly finding the first point at which a function equals 0 using scipy.optimize
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 ...
0
votes
1answer
128 views
Why can't I rig SciPy's constrained optimization for integer programming?
I've read that integer programming is either very tricky or not possible with SciPy and that I probably need to use something like zibopt to do it in Python . But I really thought I could do it by ...
1
vote
1answer
142 views
How to do nonlinear complex root finding in Python
I want to do a root search for the following nonlinear equations, I do it in Python but it doesn't work. my code is below
from pylab import *
import scipy
import scipy.optimize
def z1(x,y):
...
0
votes
1answer
73 views
Constrained minimization of multivariate function using Jython
I have a python program running under Jython (to use a third party Java API), inside which I would like to calculate a constrained minimization of a multivariate function.
Scipy has a module for ...
12
votes
4answers
2k views
What libraries should I use for linear programming in python?
A quick search on "python linear programming" turns up a lot of hits (e.g. this one). Looking through them, I see a fair number of complaints about outdated dependencies, poor documentation, etc.
...
9
votes
6answers
510 views
Parallel many dimensional optimization
I am building a script that generates input data [parameters] for another program to calculate. I would like to optimize the resulting data. Previously I have been using the numpy powell optimization. ...
1
vote
1answer
568 views
scipy minimize slsqp, leads to OverflowError: Python int too large to convert to C long
This program:
from __future__ import division
import numpy as np
from scipy.optimize import minimize
from collections import deque
def buy_captial():
""" buys the profit maximizing amount of ...
0
votes
0answers
65 views
How to specify box constraints in cvxopt
I have a linear optimization problem which includes box constraints (the solution has to be non-negative). As I understand it, such a problem can be solved more efficiently if one knows that a ...
1
vote
0answers
117 views
CVXOPT VS. OpenOpt [closed]
CVXOPT: http://abel.ee.ucla.edu/cvxopt/index.html
OpenOpt: http://openopt.org/Welcome
What's the relation between them?
What are the advantages/disadvantages of them, respectively?
BTW, is there ...
1
vote
0answers
175 views
glitch in numerical optimization in python using nelder-mead
I am trying a two variable optimization of a non-linear function using the scipy.optimize.minimize module using the Nelder-Mead method. The optimization is quite successful overall but in between ...
0
votes
2answers
146 views
scipy.optimize with matrix constraint
How do I tell fmin_cobyla about a matrix constraint Ax-b >= 0? It won't take it as a vector constraint:
cons = lambda x: dot(A,x)-b
thanks.
0
votes
4answers
668 views
Finding all divisors of a number optimization
I have written the following function which finds all divisors of a given natural number and returns them as a list:
def FindAllDivisors(x):
divList = []
y = 1
while y <= math.sqrt(x):
...
1
vote
0answers
89 views
Resources for optimizing cutting patterns?
I have a bunch of rectangles of varying dimensions that I need to cutout from a piece of sheet stock.
I'm pretty familiar with python but I've never done anything like this. It seems like a problem ...
3
votes
1answer
243 views
Maximize function: what method?
I have a function which looks like this: f(x) = min(f_1(x_1), ..., f_n(x_n)) where n is about 10 and all f_i are positive monotonic, smooth, and their values are almost always (for all x_i for all ...