<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:"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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {mso-style-priority:99;
        mso-style-link:"Plain Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.5pt;
        font-family:Consolas;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.PlainTextChar
        {mso-style-name:"Plain Text Char";
        mso-style-priority:99;
        mso-style-link:"Plain Text";
        font-family:Consolas;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.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=DA link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I have tried different settings <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>1)<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>__DECOMP_LP_CPX__<o:p></o:p></span></p>

<p class=MsoPlainText>__DECOMP_IP_CPX__<o:p></o:p></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Gives a range constraint error.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>2)<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>__DECOMP_LP_CLP__<o:p></o:p></span></p>

<p class=MsoPlainText><span lang=EN-US>__DECOMP_IP_CPX__<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>No error.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>In either case, however, It doesn&#8217;t seem to be using
CPLEX.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Best regards,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Jonas<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> dip-bounces@list.coin-or.org [mailto:dip-bounces@list.coin-or.org]
<b>On Behalf Of </b>Shahin Gelareh<br>
<b>Sent:</b> 29. december 2010 18:17<br>
<b>To:</b> dip@list.coin-or.org<br>
<b>Subject:</b> Re: [Dip] Dip Digest, Vol 8, Issue 9<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Jonas<br>
<br>
Did I understand correctly that you did &quot;not&quot; set
__DECOMP_IP_CPX__&nbsp; and __DECOMP_LP_CPX__&nbsp; in the project property
-&gt; C/C++ -&gt;Preprocessor -&gt; Preprocessor Definition?<br>
<br>
Cheers,<br>
Shahin<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>On Wed, Dec 29, 2010 at 6:00 PM, &lt;<a
href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a>&gt;
wrote:<o:p></o:p></p>

<p class=MsoNormal>Send Dip mailing list submissions to<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a
href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
or, via email, send a message with subject or body 'help' to<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a><br>
<br>
You can reach the person managing the list at<br>
&nbsp; &nbsp; &nbsp; &nbsp;<a href="mailto:dip-owner@list.coin-or.org">dip-owner@list.coin-or.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of Dip digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
&nbsp; 1. Re: Alternative solver for subproblems<br>
&nbsp; &nbsp; &nbsp;(Jonas Christoffer Villumsen)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 28 Dec 2010 23:05:03 +0100<br>
From: Jonas Christoffer Villumsen &lt;<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>&gt;<br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
To: Ted Ralphs &lt;<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>&gt;<br>
Cc: &quot;<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>&quot;
&lt;<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>&gt;, &nbsp;
&nbsp; &nbsp;Matthew Galati<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>&gt;<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp;&lt;<a
href="mailto:D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk">D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Thanks, Ted!<br>
<br>
I added my CPLEX library, added a libOsiCpx project, and changed the
preprocessor definitions from<br>
<br>
__DECOMP_LP_CLP__<br>
__DECOMP_IP_CBC__<br>
<br>
To<br>
<br>
__DECOMP_LP_CPX__<br>
__DECOMP_IP_CPX__<br>
<br>
This results in the algorithm terminating with a range constraint error
(probably an issue with my model). &nbsp;I then changed it to<br>
<br>
__DECOMP_LP_CLP__<br>
__DECOMP_IP_CPX__<br>
<br>
With the option SolveRelaxAsIp = 1 and it runs to optimality. &nbsp;However, it
seems like it is still using CBC for solving subproblems. &nbsp;I noticed that
the MSV text editor shows blocks with<br>
<br>
#ifdef __DECOMP_IP_CPX__<br>
...<br>
#endif<br>
<br>
And<br>
<br>
#ifdef __DECOMP_LP_CPX__<br>
...<br>
#endif<br>
<br>
<br>
As &quot;Inactive Preprocessor Block&quot; (e.g. in decomp.h). &nbsp;I guess
that these blocks are not read for some reason. &nbsp;Anyone have an idea what
might be the issue here?<br>
<br>
I also tried to replace<br>
<br>
#define __DECOMP_LP_CLP__<br>
#define __DECOMP_IP_CBC__<br>
<br>
with<br>
<br>
#define __DECOMP_LP_CPX__<br>
#define __DECOMP_IP_CPX__<br>
<br>
In DecompConfig.h without luck.<br>
<br>
Thanks again,<br>
Jonas<br>
<br>
PS. I am using MSVC++2008<br>
<br>
<br>
-----Original Message-----<br>
From: Ted Ralphs [mailto:<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>]<br>
Sent: 24. december 2010 00:48<br>
To: Jonas Christoffer Villumsen<br>
Cc: Matthew Galati; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
<br>
The config.site is for builds using the autotools in *nix<br>
environments. To use CPLEX in DIP with MSVC++, you would have to<br>
manually add<br>
<br>
-D__DECOMP_IP_CPX__ -D__DECOMP_LP_CPX__<br>
<br>
to the compiler defines and also add the CPLEX library as a<br>
dependency. If you're not familiar with how to do either one of these<br>
steps, post more information about which version of MSVC++ you're<br>
using and I can be more specific.<br>
<br>
Cheers,<br>
<br>
Ted<br>
<br>
On Thu, Dec 23, 2010 at 8:36 PM, Jonas Christoffer Villumsen<br>
&lt;<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>&gt; wrote:<br>
&gt; Thanks, Matthew!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I forgot to mention that I am using MS Visual Studio.? Is it essentially
the<br>
&gt; same procedure with a config.site file?? And, how can I check which solver<br>
&gt; is actually used by DIP?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards and happy holidays,<br>
&gt;<br>
&gt; Jonas<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: Matthew Galati [mailto:<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>]<br>
&gt; Sent: 22. december 2010 16:48<br>
&gt; To: Jonas Christoffer Villumsen; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
&gt; Subject: RE: Alternative solver for subproblems<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; When you configure, you need to set the options for the LP and/or IP
solver<br>
&gt; as well as the location of cplex inc and lib dirs.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I do it with a configuration file and have this:<br>
&gt;<br>
&gt; ? export CONFIG_SITE=$HOME/config.site-COIN<br>
&gt;<br>
&gt; in my startup script (.bashrc).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Here is my config file for running at Lehigh:<br>
&gt;<br>
&gt; # COIN config.site file for common autotools settings<br>
&gt;<br>
&gt; #use CPLEX<br>
&gt;<br>
&gt; with_lp_solver=cplex<br>
&gt;<br>
&gt; with_ip_solver=cplex<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; #location of CPLEX<br>
&gt;<br>
&gt; with_cplex_incdir=&quot;/usr/local/cplex/include/ilcplex&quot;<br>
&gt;<br>
&gt;
with_cplex_lib=&quot;-L/usr/local/cplex/lib/x86-64_debian4.0_4.1/static_pic<br>
&gt; -lcplex -lpthread&quot;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; From: <a href="mailto:dip-bounces@list.coin-or.org">dip-bounces@list.coin-or.org</a>
[mailto:<a href="mailto:dip-bounces@list.coin-or.org">dip-bounces@list.coin-or.org</a>]
On<br>
&gt; Behalf Of Jonas Christoffer Villumsen<br>
&gt; Sent: Wednesday, December 22, 2010 10:25 AM<br>
&gt; To: <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
&gt; Subject: [Dip] Alternative solver for subproblems<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Could anyone give me a hint on how to set up DIP to use CPLEX for solving<br>
&gt; integer subproblems?<br>
&gt;<br>
&gt; It seems that the OSI-Cplex solver interface is not included in the DIP<br>
&gt; project.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; (I am new to COIN-OR and DIP).<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any help is much appreciated.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Jonas<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Dip mailing list<br>
&gt; <a href="mailto:Dip@list.coin-or.org">Dip@list.coin-or.org</a><br>
&gt; <a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
&gt;<br>
<br>
<br>
<br>
--<br>
Dr. Ted Ralphs<br>
Associate Professor, Lehigh University<br>
(610) 628-1280<br>
ted 'at' lehigh 'dot' edu<br>
<a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Dip mailing list<br>
<a href="mailto:Dip@list.coin-or.org">Dip@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/dip" target="_blank">http://list.coin-or.org/mailman/listinfo/dip</a><br>
<br>
End of Dip Digest, Vol 8, Issue 9<br>
*********************************<o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>