4 views (last 30 days)

Hello there, I need help figuring out how to set the paremeters for this specific linear programming problem:

including the function for L, and the conditions A, b ,Aeq, beq.

(whichever conditions I might have))

My thoughtprocess so far is that there is only one ineqality condition:

lb < L < ub ( lb = 0, ub = random integer)

f = abs(sum( m - L ));

A = [];

b = [];

Aeq = [];

beq = [];

lb = 0;

ub = j;

Sets are empty because I dont know how to discribe the parameters.

All information I do have is in the Text below.

the "easy" way to calculate L is to take the mean(m), but I must not use anything different then an optiization tool.

L = distance from the "Main Station" to the start of the Line ( point 0), which needs to be optimized.

% A railway line has n stations, with n 2. Each of the stations is at points xj 2 R,

% where j = 1; 2; : : : ; n, and the two ends of the line correspond to x1 and xn,

% respectively. We will assume that the following sequence x1 < x2 < < xn holds.

% It is desired to locate the railway trac management center of that line at a point

% xc 2 [x1; xn] so that the total sum of the distances from the management center

% to each of the stations is minimal. Determine at which point/points xc 2 [x1; xn],

% along the railway line, should the trac management center be located and nd

% the minimum value of the distance in terms of the positions xj of the stations.

Thanks for your time, I hope this is not to much to ask for.

It would already help if you see any mayor mistake and point it out so I can specify my question more.

Matt J
on 6 Jan 2020

Edited: Matt J
on 6 Jan 2020

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 1 Comment

## Direct link to this comment

https://de.mathworks.com/matlabcentral/answers/499131-linearprogramming-conditions-are-unknown#comment_783524

⋮## Direct link to this comment

https://de.mathworks.com/matlabcentral/answers/499131-linearprogramming-conditions-are-unknown#comment_783524

Sign in to comment.