help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Help


From: stilak1
Subject: Re: [Help-glpk] Help
Date: Sat, 28 Aug 2004 22:24:16 -0400 (EDT)

Hi Tor,

Thanks a lot. Yes that worked. I got my answer. I had tried setting both
upper and lower bnds to zero (I tought for free var thats the way to
ignore that, but didn't know abut this LPX_FR).

lpx_set_col_bnds(lp,7,LPX_UP,0.0,0.0);
lpx_set_col_bnds(lp,7,LPX_LO,0.0,0.0);


Also, Has anyone used glpk for DEA (Data enveloment analysis) before ?
I am interested in calculating efficiency analysis for multi i/p multi o/p
cases.


On Sat, 28 Aug 2004, Tor Myklebust wrote:

> 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]
>
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]