May 16, 2007 #1 pmonon Full Member level 3 Joined Jan 28, 2006 Messages 152 Helped 7 Reputation 14 Reaction score 1 Trophy points 1,298 Activity points 2,232 please give me some idea about this problem: Say I have an obj function: Σ (Z[mlf]) *(1+log X[mlf]) where Z[mlf] is a binary valued (or indicator) function having either value 1 or 0. I need to maximize the function over all m,l,f. How I can implement it in AMPL? Is there any way to convert the objective function so that I can use the linear programming feature?
please give me some idea about this problem: Say I have an obj function: Σ (Z[mlf]) *(1+log X[mlf]) where Z[mlf] is a binary valued (or indicator) function having either value 1 or 0. I need to maximize the function over all m,l,f. How I can implement it in AMPL? Is there any way to convert the objective function so that I can use the linear programming feature?
May 17, 2007 #2 Cking Junior Member level 1 Joined May 11, 2007 Messages 15 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,373 convert this discrete equation into linear equation. and make use of the Primal Dual Algorithm.
May 17, 2007 #3 pmonon Full Member level 3 Joined Jan 28, 2006 Messages 152 Helped 7 Reputation 14 Reaction score 1 Trophy points 1,298 Activity points 2,232 Re: any one expert in AMPL or Linear /Non linear programming Cking said: convert this discrete equation into linear equation. and make use of the Primal Dual Algorithm. Click to expand... Hey Cking And do you have any idea how to convert this non lin aq. to a lin one? Cause I dont have any so far. Can you give me some hints?
Re: any one expert in AMPL or Linear /Non linear programming Cking said: convert this discrete equation into linear equation. and make use of the Primal Dual Algorithm. Click to expand... Hey Cking And do you have any idea how to convert this non lin aq. to a lin one? Cause I dont have any so far. Can you give me some hints?
May 18, 2007 #4 Cking Junior Member level 1 Joined May 11, 2007 Messages 15 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,373 you should seek a relaxation of the integral constraints to continuous variables. Average the binary indicator obtained in a certain span of time----thats the maximum help that i can offer.good luck.
you should seek a relaxation of the integral constraints to continuous variables. Average the binary indicator obtained in a certain span of time----thats the maximum help that i can offer.good luck.