mathematical-optimization

Python Pulp using with Matrices

倖福魔咒の 提交于 2020-12-29 02:52:04
问题 I am still very new to Python, after years and years of Matlab. I am trying to use Pulp to set up an integer linear program. Given an array of numbers: {P[i]:i=1...N} I want to maximize: sum( x_i P_i ) subject to the constraints A x <= b A_eq x = b_eq and with bounds (vector based bounds) LB <= x <= UB In pulp however, I don't see how to do vector declarations properly. I was using: RANGE = range(numpy.size(P)) x = pulp.LpVariable.dicts("x", LB_ind, UB_ind, "Integer") where I can only enter

Errors when attempting constrained optimisation using optim()

荒凉一梦 提交于 2020-12-01 10:48:45
问题 I have been using the Excel solver to handle the following problem solve for a b and c in the equation: y = a*b*c*x/((1 - c*x)(1 - c*x + b*c*x)) subject to the constraints 0 < a < 100 0 < b < 100 0 < c < 100 f(x[1]) < 10 f(x[2]) > 20 f(x[3]) < 40 where I have about 10 (x,y) value pairs. I minimize the sum of abs(y - f(x)). And I can constrain both the coefficients and the range of values for the result of my function at each x. I tried nls (without trying to impose the constraints) and while

How to localize a signal given the location of three receivers and the times at which when they receive the signal (Time Delay of Arrival)?

风流意气都作罢 提交于 2020-11-24 17:44:54
问题 I have 3 receivers (A, B and C), and some signal producing source (let's say sound or light) with an unknown location. Given the locations of A,B and C, and the time at which each receiver "heard" the signal, I'd like to determine the direction of the source. I understand there are ways to do so with TDoA multilateration/trilateration, however I'm having trouble implementing the calculation. There isn't a lot of clear, detailed information on this out there for those entirely new to the

How to localize a signal given the location of three receivers and the times at which when they receive the signal (Time Delay of Arrival)?

你离开我真会死。 提交于 2020-11-24 17:44:15
问题 I have 3 receivers (A, B and C), and some signal producing source (let's say sound or light) with an unknown location. Given the locations of A,B and C, and the time at which each receiver "heard" the signal, I'd like to determine the direction of the source. I understand there are ways to do so with TDoA multilateration/trilateration, however I'm having trouble implementing the calculation. There isn't a lot of clear, detailed information on this out there for those entirely new to the