Can someone help with simplex code 10.8 on NR, please?


Anu
11-22-2004, 08:40 AM
Hi,

I am trying to implement simplex algorithm on Section 10.8 of numerical recipes in c++. I have gone through the book (v2.10) and also the online version of the book. Now, I am trying to solve the example problem given in the book. But, the code doesn't take me to Phase 2. It quits the function saying no feasible solution exists. (auxillary objective function is still negative). I followed teh steps manually and debugged the code as well. Everything seems to be correct. I am not able to get the solution given in the text book. How do I get rid of one of the columns?
Can someone help me please? I would really appreciate this. I have been trying for all online helps and suggestions, but not getting anywhere.

many thanks in advance.

Anu

kutta
10-25-2006, 02:26 AM
Hi,

I am trying to implement simplex algorithm on Section 10.8 of numerical recipes in c++. I have gone through the book (v2.10) and also the online version of the book. Now, I am trying to solve the example problem given in the book. But, the code doesn't take me to Phase 2. It quits the function saying no feasible solution exists. (auxillary objective function is still negative). I followed teh steps manually and debugged the code as well. Everything seems to be correct. I am not able to get the solution given in the text book. How do I get rid of one of the columns?
Can someone help me please? I would really appreciate this. I have been trying for all online helps and suggestions, but not getting anywhere.

many thanks in advance.

Anu
Hello Anu
Better late than never is an element of old saying now applicable and hope the enclosed solvelinear program in java toatally different from that of nr program ,though of the same simplex method algorithm ,might help u to retry the nr prog after ,a glimpse of the same,executing /debugging thus eabling u to perform well for NR task,best luck
As Always
:)

kutta
07-02-2007, 06:13 AM
Hello Anu
Better late than never is an element of old saying now applicable and hope the enclosed solvelinear program in java toatally different from that of nr program ,though of the same simplex method algorithm ,might help u to retry the nr prog after ,a glimpse of the same,executing /debugging thus eabling u to perform well for NR task,best luck
As Always
:)
Your no response for my suggestion in java ,now enabling me to help you in C++ itself. However please note that this is just a trail for you to acknowledge for this program.:)
Thanks
As Always
C.R.Muthukumar(Kutta)