[Help-glpk] Can I use API to form non-standard LP problem?

2009-03-25 Thread rainly
Hello,I am new to the glpk package and i needed some help: I have an objective function and a set of constraints but I dont know how to pogram it with glpk.I want to use the set of api routines the glpk provides. I have read the example in the manual but still the example is so simple compared to

Re: [Help-glpk] API glp_find_col

2009-03-30 Thread rainly
Thanks for your reply. I should call glp_create_index after each glp_set_col_name, right? or I only need to call it once after glp_create_prob? Thanks again. To create the name index you should call the routine glp_create_index after glp_create_prob.

[Help-glpk] Column kind violation in optimal solution

2009-03-31 Thread rainly
I print out the solution of my problem and it is like the following No. Column name St Activity Lower bound Upper boundMarginal -- -- - - - - 1 z[0][0] B 0 0 1 2

Re: [Help-glpk] Status : Integer Undefined : what does it mean.

2009-03-31 Thread rainly
Hi, I have exactly the same problem. I am using API and I do not set any time limit. If I add a break point after glp_simplex(lp, NULL); I can see OPTIMAL SOLUTION FOUND in the command line window. However, the output file shows Status: INTEGER UNDEFINED and everything takes 0. What should I

Re: Re[Help-glpk] garding speeding up MIPs by providing Initial solutions

2009-04-01 Thread rainly
Hi, I am suffering from the same problem. I have tried all the following but none works. glp_scale_prob(lp, GLP_SF_AUTO); glp_adv_basis(lp, 0); glp_simplex(lp, NULL);