Thanks Paul.
The denominator is always positive.
I tried your idea but I get no feasible solution.
Please, consider this example with only 3 elements i.e. j=1 to 3:
D1 = 100 , W1= 1
D2 = 200 , W2 = 2
D3 = 300 , W3 = 3
X1 5;
the original NLP obj that gives me an optimal solution is:
MIN = @SUM(ITEMSDATA: W * D * X ) / @SUM(ITEMSDATA: W * X ) ;
Following your suggestion to linearize the obj, I added one constraint
and changed the function:
@SUM(ITEMSDATA: W * X ) = 1;
MIN = @SUM(ITEMSDATA: W * D * X ) ;
but now I get a "No feasible solution found"
Any further help will be really appreciated!
thanks again
JPC
Paul A. Rubin ha scritto:
JPC wrote:
Hello,
I've this objective function to minimize the weighted average of d(j):
min obj = sum(j,d(j)*w(j)*x(j)) / sum(j,w(j)*x(j))
d(j) and w(j) are data
x(j) is the unique decision variable.
--
Any trick to transform the objective into a linear expression?
many thanks
JPC
>
>
>
The ratio is invariant under scaling of the x variable. *If* you know
that the denominator has to be positive (you didn't say so, but it's
typical in this type of problem), you could constrain the denominator to
equal 1 and minimize the numerator.
/Paul