<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><span style="line-height: 1.6em;">Hi Thorsten and all,</span></div>

<div name="quoted-content">
<div style="font-family: Verdana;font-size: 12.0px;">
<div> </div>

<div>thank you very much for your quick response and your support.</div>

<div> </div>

<div>As I am a beginner in programming I would rather just do it in ZIMPL ;).</div>

<div> </div>

<div>Isn´t it possible to <span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">convert the set of tuples ({<0,0,3>,..., <2,0,0>}) to a table so that I create a new parameter as displayed below (static option):</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> param possible [CI]:=</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">     |1, 2, 3|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |1 |2, 0, 0|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |2 |1, 1, 0|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |3 |1, 0, 2|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |4 |0, 2, 1|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |5 |0, 1, 2|</span><br style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"/>
<span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;"> |6 |0, 0, 3|;         </span><span style="line-height: 19.2px;">or do you have another idea how to do it in ZIMPL???</span></div>

<div> </div>

<div><span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">I really appreciate your help.</span></div>

<div><span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">Thanks in advance,</span></div>

<div><span style="font-family: Verdana;font-size: 12.0px;line-height: 19.2px;">Natalie</span></div>

<div> 
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><b>Gesendet:</b> Montag, 08. Februar 2016 um 10:51 Uhr<br/>
<b>Von:</b> "Thorsten Koch" <koch@zib.de><br/>
<b>An:</b> "Natalie Hauck" <nataliehauck@gmx.net>, scip@zib.de<br/>
<b>Betreff:</b> Re: [SCIP] Convert a set of tuples to table</div>

<div>Hi Natalie,<br/>
<br/>
> - create an ouput in form of a table with those tuples, so that I could read the<br/>
> matrix from a txt file.<br/>
<br/>
this is in general a good idea for complicated data. But I would not use<br/>
Zimpl to generate the file but a nice scripting language like phython/awk/perl<br/>
whatever you like. Then you can use the read statement to read the data into<br/>
a param or set.<br/>
<br/>
Best regards,<br/>
Thorsten<br/>
<br/>
<br/>
<br/>
Am 08.02.16 um 10:43 schrieb Natalie Hauck:<br/>
> Hi Scip-Team,<br/>
> thank you very much for your help :)! I really appreciate it.<br/>
> I have a question regarding a set of tuples. I generated with your help:<br/>
> set C := {0 ..3};<br/>
> set ZSK := {<a,b,c> in C*C*C with 4 * x + 5 * y + 3 * z <= 11 and 4 * x + 5<br/>
> * y + 3 * z >= 9};<br/>
> do print ZSK;<br/>
> and ZSK e.g contains now : {<0,0,3>,..., <2,0,0>}; This is great.<br/>
> Unfortunately, I encountered another problem and I thought you might have a<br/>
> smart idea. I would like to either<br/>
> - convert the set of tuples to a table (array) so that I create a new parameter<br/>
> as displayed below (static option):<br/>
> param possible [CI]:=<br/>
> |1, 2, 3|<br/>
> |1 |2, 0, 0|<br/>
> |2 |1, 1, 0|<br/>
> |3 |1, 0, 2|<br/>
> |4 |0, 2, 1|<br/>
> |5 |0, 1, 2|<br/>
> |6 |0, 0, 3|;<br/>
> or<br/>
> - create an ouput in form of a table with those tuples, so that I could read the<br/>
> matrix from a txt file.<br/>
> I would again very much appreciate any support from your side.<br/>
> Best regards,<br/>
> Natalie<br/>
><br/>
><br/>
><br/>
> _______________________________________________<br/>
> Scip mailing list<br/>
> Scip@zib.de<br/>
> <a href="http://listserv.zib.de/mailman/listinfo/scip" target="_blank">http://listserv.zib.de/mailman/listinfo/scip</a><br/>
><br/>
<br/>
--<br/>
The important thing is not to stop questioning.<br/>
Curiosity has its own reason for existing. -- Albert Einstein<br/>
______________________________________________________________________<br/>
Prof. Dr. Thorsten Koch / Technische Universität Berlin<br/>
<a href="http://www.zib.de/koch" target="_blank">www.zib.de/koch</a> / and<br/>
koch@zib.de / Zuse Institute Berlin (ZIB)<br/>
_____________________/ Takustraße 7, 14195 Berlin, Germany<br/>
and also Phone +49-30-84185-213, Fax -269<br/>
KOBV : Kooperativer Bibliotheksverbund Berlin Brandenburg<br/>
digiS: Servicestelle Digitalisierung des Landes Berlin<br/>
______________________________________________________________________</div>
</div>
</div>
</div>
</div>
</div></div></body></html>