[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Help
From: |
Tor Myklebust |
Subject: |
Re: [Help-glpk] Help |
Date: |
Sat, 28 Aug 2004 22:12:31 -0400 (EDT) |
Your code does not make phi free. Try adding an "lpx_set_col_bnds(lp, 7,
LPX_FR, 0, 0)" or some such.
On Sat, 28 Aug 2004 address@hidden wrote:
>
> Hi Everyone,
>
> I am new in this area and trying glpk for the first time.
> I am trying to work on the following problem:
>
> Max phi
>
> s.t.
> 4a+9b+6c+8d+7e+11f-6phi >= 0
> 2a+4b+3c+6d+5e+8f-3phi >= 0
> 2a+7b+6c+5d+8e+6f =< 6
> 3a+5b+7c+8d+4e+6f <= 7
>
> a,b,c,d,e,f >= 0, phi is free
>
>
> I get following answer:
>
> ! 0: objval = 0.000000000e+00 infeas = 0.000000000e+00
> OPTIMAL SOLUTION FOUND
> Z:0 l1:0 l2:0 l3:0 l4:0 l5:0 l6:0 ph:0
>
>
> Is there something wrong with my code, or simplex is not the right method
> for this problem ? Any help would be great...
>
[snip]