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
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.
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
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
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);