help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] How to tell if lpx_simplex() needs to be restarted?


From: Andrew Makhorin
Subject: Re: [Help-glpk] How to tell if lpx_simplex() needs to be restarted?
Date: Mon, 10 Apr 2006 13:35:43 +0400

> I run my simulations on a Pentium 1.5Ghz with 512MB RAM. This is how my
> code looks:
> 
> /*for loop that assigns values to ne, ia, ja, ar here*/
> 
>   lpx_load_matrix(lp, ne, ia, ja, ar); 
>   
>   lpx_simplex(lp);
>   
>   Z = lpx_get_obj_val(lp);

Try to scale the problem and/or enable the lp presolver, i.e. add
the following calls:

   lpx_scale_prob(lp);
   lpx_set_int_parm(lp, LPX_K_PRESOL, 1);

before call to lpx_simplex.





reply via email to

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