help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] glp_analyze_bound


From: frnz65
Subject: Re: [Help-glpk] glp_analyze_bound
Date: Tue, 29 Jun 2010 17:03:47 +0400



Andrew Makhorin wrote:
> 
>> I'm trying to use glp_analyze_bound:
> 
>> double *limit1;
>> double *limit2;
>> int *var1, *var2;
> 
>>         glp_prob *GLV;
>>      GLV = glp_create_prob();
>>      glp_read_mps(GLV, GLP_MPS_FILE, NULL, mpscardfile);
>>      glp_adv_basis(GLV, 0); 
>>      glp_simplex(GLV, NULL);
>>      glp_print_sol(GLV, "../out/GLV_SOL.dat");     // write the results in
>> this
>> file
>>         glp_analyze_bound(GLV, 473, limit1, var1, limit2, var2); 
> 
> 
>> but I do get a bus error when I use  glp_analyze_bound.
> 
>> What's wrong?
> 
> What is a "bus error"? Do you mean something like segmentation fault,
> or what?
> 
> 
> Yes, I think it is a close relative of a segmentation fault. Here's my
> output:
> 
> 
> Reading problem data from `GLV_card.mps'...
> Problem: GLV
> Objective: QUAL
> 1902 rows, 34641 columns, 134828 non-zeros
> 34641 integer variables, all of which are binary
> 177016 records were read
> Constructing initial basis...
> Size of triangular part = 1902
> GLPK Simplex Optimizer, v4.44
> 1902 rows, 34641 columns, 134828 non-zeros
>       0: obj =   2.460000000e+02  infeas =  1.762e+03 (0)
>     500: obj =   7.330000000e+02  infeas =  1.243e+03 (0)
>    1000: obj =   1.095000000e+03  infeas =  7.250e+02 (0)
>    1500: obj =   1.380000000e+03  infeas =  3.160e+02 (0)
>    2000: obj =   1.584000000e+03  infeas =  1.210e+02 (0)
>    2500: obj =   1.703000000e+03  infeas =  1.600e+01 (0)
> *  2634: obj =   1.700000000e+03  infeas =  0.000e+00 (0)
> *  3000: obj =   1.964000000e+03  infeas =  0.000e+00 (0)
> *  3500: obj =   2.195000000e+03  infeas =  0.000e+00 (0)
> *  4000: obj =   2.313000000e+03  infeas =  0.000e+00 (0)
> *  4018: obj =   2.315000000e+03  infeas =  0.000e+00 (0)
> OPTIMAL SOLUTION FOUND
> Bus error
> 
> 
> ....and that's all. No other info.
> 
> 
> 
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
> 
> 

-- 
View this message in context: 
http://old.nabble.com/glp_analyze_bound-tp29012647p29021421.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.






reply via email to

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