mathematical-optimization Questions
4
Solved
after setting the objective function and constraints, i use
prob.solve()
print prob.solution.get_objective_value()
actually, I just want to print the objective value, however, it displays a lot ...
Towrey asked 4/12, 2013 at 2:37
4
Key Points:
I have a default ball trajectory generated using some code(provided below). Lets name this trajectory Initial Trajectory.
Next I have an actual ball whose trajectory I need to estimate...
Vocative asked 23/7, 2024 at 8:36
3
Solved
I have a rectangular matrix with n rows and m column. All entries of the matrix are natural numbers (including 0).
Among the m columns, I'm given some index, j (< m). I'd like the matrix to beco...
Undercool asked 31/5, 2024 at 6:4
2
Solved
Anyone know of an equivalent to (at least part of) scipy.optimize implemented in javascript? I'm trying to fit various distributions (e.g. skew normal) to quantiles, but I've needed an optimization...
Listen asked 12/6, 2012 at 20:35
2
Solved
Of course i know that there is a good pow() function in cmath(math.h), but not touching the background of the pow() what is the fastest way to power numbers with my own hands?
Guttapercha asked 26/9, 2021 at 19:53
7
Solved
I would like students to solve a quadratic program in an assignment without them having to install extra software like cvxopt etc. Is there a python implementation available that only depends on Nu...
Halutz asked 9/6, 2013 at 12:50
2
I am trying to understand why the scipy.optimize.least_squares exists in scipy. This function can be used to perform model-fitting. However, one could use scipy.optimize.minimize to do the same thi...
Ganiats asked 10/3, 2018 at 17:11
1
I'm trying to solve a simple optimisation problem, we want to have a complex valued Hermitian matrix as its variable (topic is quantum mechanics).
using Convex #load the optimization solvers
using ...
Claudeclaudel asked 5/3, 2016 at 10:42
2
Idea
It's quite sad that so many great countries (e.g. India) and players (e.g. Mo Salah) may never play at the FIFA (football/soccer) World Cup (the same argument could apply as well to other spor...
Dilapidate asked 14/8, 2023 at 4:8
9
Does anyone know of any optimization packages out there for R (similar to NUOPT for S+)?
Ineradicable asked 11/12, 2008 at 14:2
3
I need some help with writing this algorithm.
For a given set of lines in space, I am trying to find the accessible volume when the origin (reference point) is 0.5,0.5,0.5. Currently, I do the foll...
Bonham asked 7/2, 2018 at 21:50
1
I want to implement non-negative matrix factorization using PyTorch. Here is my initial implement:
def nmf(X, k, lr, epochs):
# X: input matrix of size (m, n)
# k: number of latent factors
# lr:...
Albion asked 15/3, 2023 at 9:14
2
Solved
Let's suppose I have a matrix
arr = array([[0.8, 0.2],[-0.1, 0.14]])
with a target function
def matr_t(t):
return array([[t[0], 0],[t[2]+complex(0,1)*t[3], t[1]]]
def target(t):
arr2 = matr_t(t...
Irreverence asked 19/11, 2013 at 15:37
2
Solved
According to the SciPy documentation, it is possible to minimize functions with multiple variables, yet it doesn't say how to optimize such functions.
from scipy.optimize import minimize
from math ...
Brynne asked 2/12, 2012 at 14:43
3
I have a set of points W={(x1, y1), (x2, y2),..., (xn, yn)} on the 2D plane. Can you find an algorithm that takes these points as the input and returns a point (x, y) on the 2D plane which has the ...
Spooner asked 30/7, 2019 at 17:40
3
I am interested in the performance of Pyomo to generate an OR model with a huge number of constraints and variables (about 10e6). I am currently using GAMS to launch the optimizations but I would l...
Folderol asked 14/4, 2017 at 13:59
0
I have a Python Tkinter app that loads a dataset with 10 million data points into a plot using Matplotlib. In addition, it allows the user to constantly apply various signal processing filters on r...
Hanafee asked 7/12, 2022 at 9:44
1
I had asked this question earlier, and wanted to continue with a follow-up since I tried some other things and they didn't quite work out.
I am essentially trying to optimize an NLP type problem i...
Synecology asked 30/9, 2016 at 15:12
2
Solved
I am trying to minimize a function of a complex (vector) variable using scipy.optimize. My results so far indicate that it may not be possible. To investigate the problem, I have implemented a simp...
Steamboat asked 6/7, 2018 at 13:3
5
Solved
Using CUDA, I would like to solve a system of equations with a non-linear least squares solver. These methods are discussed in an excellent booklet that can be downloaded here.
The Jacobian matrix...
Sherilyn asked 7/11, 2012 at 20:28
8
I use scipy.optimize to minimize a function of 12 arguments.
I started the optimization a while ago and still waiting for results.
Is there a way to force scipy.optimize to display its progress (...
Zita asked 24/5, 2013 at 15:57
7
Solved
How can I tell whether two triangles intersect in 2D Euclidean space? (i.e. classic 2D geometry) given the (X,Y) coordinates of each vertex in each triangle.
Lookout asked 18/10, 2009 at 17:13
0
In this question, we consider how to pack a collection of polyominos into a rectangle of a fixed size.
In my case, I'm concerned with the special case where all polyominos are rectangles and while ...
Flyn asked 17/4, 2022 at 7:0
3
I'm trying to run an optimization with scipy.optimize.differential_evolution. The code calls for bounds for each variable in x. But I want to a solution where parts of x must be integers, while oth...
Preview asked 18/2, 2016 at 23:49
2
Solved
Is there an equivalent to the MATLAB function fmincon() which finds the minimum of a constrained non-linear function (with linear equality AND inequality constraints) in R?
I can rule out constrOp...
Pogey asked 14/12, 2011 at 16:52
1 Next >
© 2022 - 2025 — McMap. All rights reserved.