Top "Mathematical-optimization" questions

Mathematical optimization deals with maximizing or minimizing an objective function by choosing values from within an allowed feasible set of possible values.

Implementing branch and bound for knapsack

I'm having a headache implementing this (awful) pseudo-java code (I wonder: why the hell people do that?) for the b&…

java mathematical-optimization branch-and-bound
Calculating the trace of a matrix to the power k

I need to calculate the trace of a matrix to the power of 3 and 4 and it needs to be as …

math optimization linear-algebra mathematical-optimization adjacency-matrix
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, …

python mathematical-optimization linear-programming
Find positive solutions to underdetermined linear system of equations

I'm a bit new to matlab so sorry if this is horribly simple. Consider a problem of the following: Find …

matlab mathematical-optimization equation-solving
My Particle Swarm Optimization code generates different answers in C++ and MATLAB

I have written a global version of Particle Swarm Optimization algorithm in C++. I tried to write it exactly as …

c++ matlab porting mathematical-optimization particle-swarm
Which algorithm for assigning shifts (discrete optimization problem)

I'm developing an application that optimally assigns shifts to nurses in a hospital. I believe this is a linear programming …

algorithm discrete-mathematics mathematical-optimization linear-programming
gurobi - Error code = 10004 Unable to retrieve attribute 'X'

I am getting an error in my c++/gurobi file: Error code = 10004 Unable to retrieve attribute 'X' I read that …

c++ math mathematical-optimization linear-programming gurobi
Which is faster: x*x or x**2?

I am trying to optimize my Python code. Between: y = x*x or y = x**2 if I need one trillion …

python performance mathematical-optimization cpu-speed
How to use opencv bundle adjustment

I have calculated 5 camera matrices (c1, ... c5), camera matrices are calculated by placing a 3D object at 5 different positions and …

opencv camera mathematical-optimization camera-calibration
Implementation of Particle Swarm Optimization Algorithm in R

I'm checking a simple moving average crossing strategy in R. Instead of running a huge simulation over the 2 dimenional parameter …

r mathematical-optimization particle-swarm