In a linear programming problem, how to define an optimzation function so that solution is equally distributed between the variables. For example, x + y = 10, I want an optimization function to make sure that x and y are close, here it will be 5, 5.
I'll give an example, there are x_n type of cars, each car requires a component in variable amount, the total number of available components is C, the equation representing this can be: 2x_1 + 3x_2 = C,
I want a solution where the x_1 and x_2 are evenly distributed.
Suppose
2x_1 + 3x_2 = 8
, solutions can be:
x_1 = 4, x_2 = 0
x_1 = 1, x_2 = 2
I want to optimize the problem to get the second solution, because the values are more close to each other. Or the deviation between the variables is less. Can I use LP to solve this.
Suppose 2x_1 + 3x_2 = 8, solutions can be: x_1 = 4, x_2 = 0 x_1 = 1, x_2 = 2
I want to optimize the problem to get the second solution, because the values are more close to each other. Or the deviation between the variables is less. Can I use LP to solve this. Updated the question body also.
– Aravinda Kumar Nov 10 '22 at 08:16