Re: Is this code correct in the GMPL implementation ?

2020-08-01 Thread Andrew Makhorin
On Sat, 2020-08-01 at 11:26 +0200, Domingo Alvarez Duarte wrote: > Hello ! > > This is my fourth time trying to replace the actual TUPLE struct  > representation https://github.com/mingodad/GLPK/tree/new-tuple and > I'm  > struggling again in understand/rewrite some parts of the code, > mainly  >

Re: Is this code correct in the GMPL implementation ?

2020-08-01 Thread Domingo Alvarez Duarte
Hello ! This is my fourth time trying to replace the actual TUPLE struct representation https://github.com/mingodad/GLPK/tree/new-tuple and I'm struggling again in understand/rewrite some parts of the code, mainly src/mpl/mpl3.c::saturate_set and other places. I'm asking for help to try to

Re: Is this code correct in the GMPL implementation ?

2020-07-25 Thread Andrew Makhorin
On Sat, 2020-07-25 at 13:35 +0200, Domingo Alvarez Duarte wrote: > Hello ! > > Trying to change the actual TUPLE structure by: > > > > #ifndef TUPLE_SIZE_T > #define TUPLE_SIZE_T int > #endif > struct TUPLE > { >    TUPLE_SIZE_T size; >    TUPLE_SIZE_T refcount; >    SYMBOL

Is this code correct in the GMPL implementation ?

2020-07-25 Thread Domingo Alvarez Duarte
Hello ! Trying to change the actual TUPLE structure by: #ifndef TUPLE_SIZE_T #define TUPLE_SIZE_T int #endif struct TUPLE {   TUPLE_SIZE_T size;   TUPLE_SIZE_T refcount;   SYMBOL sym[1];   /* symbol, which the component refers to; cannot be NULL */ }; I found the