<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> </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> </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> </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> </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> </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’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> </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> </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> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi Jonas<br>
<br>
Did I understand correctly that you did "not" set
__DECOMP_IP_CPX__ and __DECOMP_LP_CPX__ in the project property
-> C/C++ ->Preprocessor -> 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, <<a
href="mailto:dip-request@list.coin-or.org">dip-request@list.coin-or.org</a>>
wrote:<o:p></o:p></p>
<p class=MsoNormal>Send Dip mailing list submissions to<br>
<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>
<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>
<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>
<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 "Re: Contents of Dip digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Alternative solver for subproblems<br>
(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 <<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>><br>
Subject: Re: [Dip] Alternative solver for subproblems<br>
To: Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>><br>
Cc: "<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>"
<<a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a>>,
Matthew Galati<br>
<<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>><br>
Message-ID:<br>
<<a
href="mailto:D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk">D1098F5B0816804F870334AA52B65F510132B5BCAE49@WINEXCHANGE1.win.dtu.dk</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<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). 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. However, it
seems like it is still using CBC for solving subproblems. 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 "Inactive Preprocessor Block" (e.g. in decomp.h). I guess
that these blocks are not read for some reason. 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>
<<a href="mailto:jcvi@man.dtu.dk">jcvi@man.dtu.dk</a>> wrote:<br>
> Thanks, Matthew!<br>
><br>
><br>
><br>
> I forgot to mention that I am using MS Visual Studio.? Is it essentially
the<br>
> same procedure with a config.site file?? And, how can I check which solver<br>
> is actually used by DIP?<br>
><br>
><br>
><br>
> Best regards and happy holidays,<br>
><br>
> Jonas<br>
><br>
><br>
><br>
> From: Matthew Galati [mailto:<a href="mailto:Matthew.Galati@sas.com">Matthew.Galati@sas.com</a>]<br>
> Sent: 22. december 2010 16:48<br>
> To: Jonas Christoffer Villumsen; <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
> Subject: RE: Alternative solver for subproblems<br>
><br>
><br>
><br>
> When you configure, you need to set the options for the LP and/or IP
solver<br>
> as well as the location of cplex inc and lib dirs.<br>
><br>
><br>
><br>
> I do it with a configuration file and have this:<br>
><br>
> ? export CONFIG_SITE=$HOME/config.site-COIN<br>
><br>
> in my startup script (.bashrc).<br>
><br>
><br>
><br>
> Here is my config file for running at Lehigh:<br>
><br>
> # COIN config.site file for common autotools settings<br>
><br>
> #use CPLEX<br>
><br>
> with_lp_solver=cplex<br>
><br>
> with_ip_solver=cplex<br>
><br>
><br>
><br>
> #location of CPLEX<br>
><br>
> with_cplex_incdir="/usr/local/cplex/include/ilcplex"<br>
><br>
>
with_cplex_lib="-L/usr/local/cplex/lib/x86-64_debian4.0_4.1/static_pic<br>
> -lcplex -lpthread"<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> 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>
> Behalf Of Jonas Christoffer Villumsen<br>
> Sent: Wednesday, December 22, 2010 10:25 AM<br>
> To: <a href="mailto:dip@list.coin-or.org">dip@list.coin-or.org</a><br>
> Subject: [Dip] Alternative solver for subproblems<br>
><br>
><br>
><br>
> Hi all,<br>
><br>
><br>
><br>
> Could anyone give me a hint on how to set up DIP to use CPLEX for solving<br>
> integer subproblems?<br>
><br>
> It seems that the OSI-Cplex solver interface is not included in the DIP<br>
> project.<br>
><br>
><br>
><br>
> (I am new to COIN-OR and DIP).<br>
><br>
><br>
><br>
> Any help is much appreciated.<br>
><br>
><br>
><br>
> Best regards,<br>
><br>
> Jonas<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>
<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> </o:p></p>
</div>
</body>
</html>