[Cmpl] Patch containing two minor fixes

Mike Steglich mike.steglich at stegger.net
Mon Jan 25 10:26:03 EST 2016


Hello Christopher,

Thank you very much for your contribution. Please give a little bit time to take a look into your patch …


Thanks,

Mike
> Am 25.01.2016 um 13:06 schrieb Christopher Gross <christopher.gross at unikat.uni-augsburg.de>:
> 
> Hi,
> 
> please find attached a small patch for CMPL. It fixes two issues:
> 
> - When a data element which uses undefined sets as array indices at a position higher than 1, an error message is not necessarily generated. Assume you define set A, set B, then X[A, B, C] and then set C. The current array parsing algorithm will parse X with only A and B as array indices (i.e. a dimension of 2) and will not generate an error message. Instead, a different error message ("count of elements doesn't match the rank of tupelset") will be output if the count of the elements happens to not also be divisible by the incorrectly calculated dimension of X. The attached patch fixes this problems and generates an error message whenever any index set of the array is not found.
> 
> - When the data files uses CRLF line endings, header options are not parsed correctly. E.g. the line "%display con nonZeros\r\n" will lead to an error message because the \r is not removed when comparing the string. The attached patch solves this by trimming all header lines both left and right.
> 
> Best regards,
> 
> Christopher
> 
> -- 
> Christopher Gross, M.Sc.
> 
> Lehrstuhl für Health Care Operations/Health Information Management
> 
> Universitäres Zentrum für Gesundheitswissenschaften am Klinikum Augsburg
> (UNIKA-T), Neusässer Straße 47, 86156 Augsburg;
> 
> Wirtschaftswissenschaftliche Fakultät, Universität Augsburg,
> Universitätsstraße 16, 86159 Augsburg
> 
> 
> Tel.: +49 821 598-6454
> 
> E-Mail:  christopher.gross at unikat.uni-augsburg.de
> Web:  http://www.wiwi.uni-augsburg.de/bwl/brunner/
> <arrayindex-and-crlf.patch>_______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl




More information about the Cmpl mailing list