<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Preformattato HTML Carattere";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PreformattatoHTMLCarattere
        {mso-style-name:"Preformattato HTML Carattere";
        mso-style-priority:99;
        mso-style-link:"Preformattato HTML";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="IT" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">John, <o:p></o:p></p>
<p class="MsoNormal">&#8220;import&#8221; was exactly the command I was toying around, but no variation of it seems to work.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I find &#8220;type&#8221; to be the windows equivalent of &#8220;cat&#8221;, so I can list file contents on the standard output, and the pipe &#8220;|&#8221; seems to work identically on windows (&#8220;Reads the output from one command and writes it to the input of another command&#8221;).<o:p></o:p></p>
<p class="MsoNormal">Indeed &#8220;type model.mod | glpsol -m /dev/stdin&#8221; works for GLPK; obviously this is not how I would use it since the whole point is to avoid the phsysical file, but what you write (ie the part from the pipe onwards
<span style="font-family:Wingdings">J</span> ) replicates my need exactly.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">You say you committed such a fix in the trunk; does this mean I only have to wait till the next release, then I can call my System.Diagnostics.Process with &#8220;cbc import stdin_lp solve solution output.out&#8221; and my lp model as an input stream?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Ted,<o:p></o:p></p>
<p class="MsoNormal">If i try to call &#8220;type model.lp | cbc -import -&quot;, this is the output i get:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">command line - cbc -import - (default strategy 1)<o:p></o:p></p>
<p class="MsoNormal">Current default (if $ as parameter) for import is<o:p></o:p></p>
<p class="MsoNormal">Switching to line mode<o:p></o:p></p>
<p class="MsoNormal">Coin:No match for \* - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for Problem: - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for model - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for *\ - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:Coin:Coin:No match for a: - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for &#43; - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for x - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:Coin:No match for Subject - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for To - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:No match for c: - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for &#43; - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for x - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for &gt; - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for -0 - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:Coin:No match for Bounds - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:No match for x - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">No match for free - ? for list of commands<o:p></o:p></p>
<p class="MsoNormal">Coin:Coin:Total time (CPU seconds):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.07&nbsp;&nbsp; (Wallclock seconds):&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0.07<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">so it is trying to match every word in the file (!) to a cbc command.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">If I try to call &#8220;type model.lp | cbc -import stdin&#8221;, it says &#8220;Unable to open file .\stdin&#8221;, so it&#8217;s treating it a regular filename.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">As for building GMPL into CBC, you correctly pointed out the licensing issues I want to avoid, but if/when you&#8217;re able to replicate it under current compilers, it would be great, at least for future reference.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thank you all very much,<o:p></o:p></p>
<p class="MsoNormal">Pietro<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Pietro,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;If you can do something like this (in linux) would that work?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;cat test.lp |bin/cbc -import stdin_lp -solve<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Welcome to the CBC MILP Solver<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;command line - bin/cbc -import stdin_lp -solve (default strategy 1)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Continuous objective value is 3.23684 - 0.00 seconds<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Cgl0004I processed model has 1 rows, 3 columns (0 integer) and 3 elements<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Cbc3007W No integer variables - nothing to do<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;I have committed fixes to trunk - key thing is to import from stdin_lp
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;(exact spelling needed)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;Does anyone know how to get GMPL working on Windows?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;<o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&gt;John Forrest<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Blue" size="2"><br>
Archimede S.r.l.<br>
Sede Legale:<br>
Via Manzoni, 82<br>
Ponte S. Giovanni<br>
<br>
P.IVA: 01992020543<br>
<br>
Tel. 075 515 22 11<br>
Fax. 075 515 22 99<br>
www.archinet.it<br>
<br>
**********************************************************************************************************************************************************************************************************************<br>
La presente comunicazione, con le informazioni in essa contenute e ogni documento o file allegato, e' rivolta unicamente alla/e persona/e cui e' indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non siete i destinatari/autorizzati siete avvisati
 che qualsiasi azione, copia, comunicazione, divulgazione o simili basate sul contenuto di tali informazioni e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n. 196/2003 Codice in materia di protezione dei dati personali). Se avete ricevuto
 questa comunicazione per errore, vi preghiamo di darne immediata notizia al mittente e di distruggere il messaggio originale e ogni file allegato senza farne copia alcuna o riprodurne in alcun modo il contenuto.<br>
<br>
This e-mail and its attachments are intended for the addressee(s) only and are confidential and/or may contain legally privileged information. If you have received this message by mistake or are not one of the addressees above, you may take no action based
 on it, and you may not copy or show it to anyone; please reply to this e-mail and point out the error which has occurred.<br>
**********************************************************************************************************************************************************************************************************************<br>
</font>
</body>
</html>