Re: [Help-glpk] Compare two matrices

2007-08-07 Thread [EMAIL PROTECTED]
Thanks again, If anyone is interested. My solution with a lot of help from Andrew Makhorin: Problem: Compare two matrices, one including variables, the other including parameters, both binary. Make sure that at most n changes can be made between the two matrices. Background: I use this for a sc

Re: [Help-glpk] Compare two matrices

2007-08-07 Thread Andrew Makhorin
> I am trying to implement your information, however there is one > small other problem. In the data section, how should I write down > the values for the A[a,b,c] matrix? Please see model train.mod in the subdirectory 'examples'. ___ Help-glpk mailin

Re: [Help-glpk] Compare two matrices

2007-08-07 Thread [EMAIL PROTECTED]
Thanks a lot for your answer. I am trying to implement your information, however there is one small other problem. In the data section, how should I write down the values for the A[a,b,c] matrix? For two dimensional, I always use: param A : a1 a2 := b1 1 1 b2 1 1; However, for thr

Re: [Help-glpk] Stop B&B at first feasible solution

2007-08-07 Thread Andrew Makhorin
Note than on processing the reason GLP_IBINGO you can obtain components of the current mip solution (using glp_ios_get_prob, glp_mip_status, glp_mip_obj_val, and glp_mip_obj_val) and then continue the search rather then terminate it. ___ Help-glpk mail

Re: [Help-glpk] Stop B&B at first feasible solution

2007-08-07 Thread Andrew Makhorin
>>> I would like to know if there a possibility to make GLPK stop as >>> soon as a feasible solution is found. >> >> It is possible only on api level. > I was indeed looking for a solution on API level. > Do you mean I nedd to use the new callback mechanism ? Yes, I do. > I thought there > wo

Re: [Help-glpk] Stop B&B at first feasible solution

2007-08-07 Thread François Galea
Andrew Makhorin a écrit : I would like to know if there a possibility to make GLPK stop as soon as a feasible solution is found. It is possible only on api level. I was indeed looking for a solution on API level. Do you mean I nedd to use the new callback mechanism ? I thought there would