[Cmpl] Rank of iteration tupel doesn't match

Mike Steglich mike.steglich at stegger.net
Sun Apr 17 11:43:12 EDT 2016


Hi Maria,

My teammate Thomas found a workaround for the problem you posted. 

I created a beta version for Win32 (CMPL v.1.11.0 beta1). It would be great if you could test it. The beta contains the entire CMPL package including the new UI Coliop4.   
The installation is easy. 

1) Just download it by using the following link: http://coliop <http://coliop/>.org/_download/CMPL-1-11-beta1.zip
2) Unzip it
3) Enjoy it (hopefully). It works out of the box in every folder. 


Since Coliop4 is written in C++ (using QT5) it is not longer necessary to install Java for running the UI. 

I’m still working on release 1.11.0 for all supported operating systems.


Thanks,


Mike





> Am 14.04.2016 um 10:36 schrieb Maria Giatsoglou <maria.giatsoglou at gmail.com>:
> 
> I am sorry: the previous email was accidentally sent incomplete!
> The situation is as follows:
> 
> I stumbled upon the following behavior when experimenting with set pattern matching in Cmpl: 
> 
> (part of my 'parameters' section)
> 
>         A := set( [1,1,2],[1,2,2],[1,4,8],[2,2,5],[2,3,1],[2,4,9],[3,1,1],[3,3,3] );
> 	B := set( A *> [*,*,/] );
> 	{ i in B: echo i; }
>         { [i,j] in B: echo i + "," + j; }
> 
> The first loop prints 
> [1, 1]
> [1, 2]
> [1, 4]
> [2, 2]
> [2, 3]
> [2, 4]
> [3, 1]
> [3, 3]
> 
> However the second one produces an error with the message "rank of iteration tupel doesn't match".
> Is there any way to access the first and second elements of the resulting 2-tuples (in B) individually? 
> 
> Best regards,
> --
> Dr. Maria Giatsoglou
> Tel: +306932241224
> Skype: maria.giatsoglou
> LinkedIn: https://gr.linkedin.com/in/mariagiatsoglou <https://gr.linkedin.com/in/mariagiatsoglou>
> On Thu, Apr 14, 2016 at 11:32 AM, Maria Giatsoglou <maria.giatsoglou at gmail.com <mailto:maria.giatsoglou at gmail.com>> wrote:
> Hello, 
> 
> I stumbled upon the following behavior when experimenting with set pattern matching in Cmpl: 
> 
> (part of my 'parameters' section)
> 
>         A := set( [1,1,2],[1,2,2],[1,4,8],[2,2,5],[2,3,1],[2,4,9],[3,1,1],[3,3,3] );
> 	B := set( A *> [*,*,/] );
> 	{ i in B: echo i; }
>         { [i,j] in B: echo i + "," + j; }
> 
> The first loop prints 
> 
> 
>  rank of iteration tupel doesn't match
> 
> --
> Dr. Maria Giatsoglou
> Tel: +306932241224 <tel:%2B306932241224>
> Skype: maria.giatsoglou
> LinkedIn: https://gr.linkedin.com/in/mariagiatsoglou <https://gr.linkedin.com/in/mariagiatsoglou>
> _______________________________________________
> Cmpl mailing list
> Cmpl at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cmpl

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cmpl/attachments/20160417/a9c95428/attachment.html>


More information about the Cmpl mailing list