Hi Hussin. If you can accept a tollerance, you can set a tolerance with --mipgap option. In attached there is the output on my laptop with option --mipgap 0.01
Send Help-glpk mailing list submissions to address@hidden
To subscribe or unsubscribe via the World Wide Web, visit http://lists.gnu.org/mailman/listinfo/help-glpk or, via email, send a message with subject or body 'help' to address@hidden
You can reach the person managing the list at address@hidden
When replying, please edit your Subject line so it is more specific than "Re: Contents of Help-glpk digest..."
GLPK can solve the attached code in 360 sec. on my Laptop, which is very long time. Is there any suggestion to expedite the solution process? Is there anything wrong with this code than does not match with MathProg? Shall I modify the MIP options to make the process faster? and how?
I want the solution process to be finish within 10-30 sec.
Anyone can help?
Thanks
set D; set S;
# Parameters
param PR {S}; param PO {D}; param AC {S}; param OI {S}; param RI {S}; param OT {S};
# Variables
var W {D,S} binary; var IL {S} integer >=1 <=3 ; var TF {S} ; var TA {S} ;
# Objective Function
minimize Z: sum {j in S} ( IL[j]*PO['L']*PR[j] + sum{i in D : i != 'L'} W[i,j]*PO[i]*PR[j] );
subject to
############# L ###################
Const_L1 {i in D, j in S : j < 1 or j > 24}: W['L',j] = 0 ;
Const_L2 { j in S : j >= 1 and j <= 24 }: OI[j] + IL[j] >= RI[j] ;
############# A ########################
Const_A1 {j in S : j = 1 } : TA[j] = 20 ;
Const_A2 {i in D, j in S: j < 1 or j > 24}: W['A',j] = 0;
Const_A3 {j in S: j >= 1 and j <= 24 } : TA[j] <= 23;
Const_A4 {j in S: j >= 1 and j <= 24 } : TA[j] >= 13;