Terry, <br><br>SYMPHONY needs the appropriate OSI derived class to access the underlying LP solver. In this case, instead of libOsiClp, you need to have the libOsiCpx project (should be in Osi\MSVisualStudio\v8\libOsiCpx) in the solution.  <br>
<br>Menal.<br><br><div class="gmail_quote">On Wed, Jan 21, 2009 at 7:28 AM, claude philippe medard <span dir="ltr">&lt;<a href="mailto:claude.philippe.medard@gmail.com">claude.philippe.medard@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Terry,<br><br>The &quot;VRP&quot; problem in the O.R. literature reads &quot;Given a fleet of x trucks, ...&quot;, hence why most probably one has to specify the number of trucks.<br>
<br>If you are trying to solve some variant of the VRP problem for your industrial application, e.g. also determine the optimal number of trucks to be used, may i suggest you think about it and do it yourself, and then add your solution as open source into the repository as a &quot;variant&quot; problem.<br>

<br>Thank you Ted for Symphony... (!)<br><br>best regards,<br>Claude Ph Medard<div><div></div><div class="Wj3C7c"><br><br><br><br><br><div class="gmail_quote">On Wed, Jan 21, 2009 at 11:29 AM, Yiqing Zhong <span dir="ltr">&lt;<a href="mailto:yiqing.zhong@ugent.be" target="_blank">yiqing.zhong@ugent.be</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi! Ted,<br>
<br>
Thank you! I understand now the number of trucks should be specified<br>
before the solving in the VRP project. But if so for any given data,<br>
that seems not very intelligent.<br>
<br>
<br>
Hi! Menal,<br>
<br>
Thank you very much for your help. The problem &quot;GLPK&quot; was fixed, gmpl<br>
model can be read. I added the library &#39;glpk&#39; as an external file, but<br>
in MSVC++ Express Edition 2005, it seems cannot be set on the<br>
dependencies. Anyway it worked now!<br>
<br>
But &nbsp;one is gone, one is coming...-_-:<br>
<br>
I am trying to use CPLEX solver in SYMPHONY, I change the preprocessor<br>
definition in the projects from &quot;__OSI_CLP__&quot; to &quot;__OSI_CPLEX__&quot;, also<br>
change the path definitions of the include files: add<br>
&quot;..\..\..\..\COIN\Osi\OsiCpx&quot; and &quot;C:\ILOG\cplex81\include\ilcplex&quot;<br>
(assuming CPLEX is installed here) as the<br>
solver&#39;s header files path definitions, but the errors are happened<br>
during the BBuilding process:<br>
<br>
&quot;7&gt;libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol &quot;public: __thiscall<br>
OsiCpxSolverInterface::OsiCpxSolverInterface(void)&quot;<br>
(??0OsiCpxSolverInterface@@QAE@XZ) referenced in function &quot;void<br>
__cdecl open_lp_solver(struct LPDATA *)&quot;<br>
(?open_lp_solver@@YAXPAULPDATA@@@Z)<br>
7&gt;libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol _CPXgetslack@20 referenced in function &quot;void __cdecl<br>
get_slacks(struct LPDATA *)&quot; (?get_slacks@@YAXPAULPDATA@@@Z)<br>
7&gt;libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol &quot;public: struct cpxenv * __thiscall<br>
OsiCpxSolverInterface::getEnvironmentPtr(void)&quot;<br>
(?getEnvironmentPtr@OsiCpxSolverInterface@@QAEPAUcpxenv@@XZ)<br>
referenced in function &quot;void __cdecl get_slacks(struct LPDATA *)&quot;<br>
(?get_slacks@@YAXPAULPDATA@@@Z)<br>
7&gt;libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol &quot;public: struct cpxlp * __thiscall<br>
OsiCpxSolverInterface::getLpPtr(int)&quot;<br>
(?getLpPtr@OsiCpxSolverInterface@@QAEPAUcpxlp@@H@Z) referenced in<br>
function &quot;void __cdecl get_slacks(struct LPDATA *)&quot;<br>
(?get_slacks@@YAXPAULPDATA@@@Z)<br>
7&gt;D:\Microsoft Visual Studio<br>
8\SYMPHONY-5.1.10\SYMPHONY\MSVisualStudio\v8\Release\symphony.exe :<br>
fatal error LNK1120: 4 unresolved externals<br>
7&gt;Build log was saved at &quot;file://d:\Microsoft Visual Studio<br>
8\SYMPHONY-5.1.10\SYMPHONY\MSVisualStudio\v8\Release\BuildLog.htm&quot;<br>
7&gt;symphony - 5 error(s), 0 warning(s)<br>
========== Rebuild All: 6 succeeded, 1 failed, 0 skipped ==========&quot;<br>
<br>
I try the &quot;__CPLEX__&quot; again, it connot work yet. What&#39;s the possible problem?<br>
<br>
Thank you!<br>
<br>
Bests!<br>
<br>
Terry<br>
<div><div></div><div><br>
<br>
Quoting Ted Ralphs &lt;ted@Lehigh.EDU&gt;:<br>
<br>
&gt; Yiqing Zhong wrote:<br>
&gt;&gt; Hi! Menal,<br>
&gt;&gt;<br>
&gt;&gt; Thank you very much for your answer. Followed with your<br>
&gt;&gt; instruction, I can execute the project now. However in the &#39;VRP&#39;<br>
&gt;&gt; project, there still &nbsp;some problems:<br>
&gt;&gt;<br>
&gt;&gt; I set the arguments &quot;-F ..\..\sample.vrp&quot; to try to check the<br>
&gt;&gt; sample &nbsp;solution under the VRP folder, but the error is shown:<br>
&gt;&gt;<br>
&gt;&gt; &quot;PROBELM NAME: ei151<br>
&gt;&gt; &nbsp;TYPE: CVRP<br>
&gt;&gt; &nbsp;DIMENSION: 51<br>
&gt;&gt; &nbsp;ERROR: Number of trucks not specified or computed for VRP&quot;<br>
&gt;<br>
&gt; For the SYMPHONY VRP solver, you need to specify the number of trucks<br>
&gt; on the command line with &quot;-N 5&quot; for instance. You&#39;re getting the error<br>
&gt; because you haven&#39;t done that. I thought that the README specified<br>
&gt; this, but if it doesn&#39;t, I guess we need to add it. Thanks for using<br>
&gt; SYMPHONY.<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Ted<br>
&gt; --<br>
&gt; Dr. Ted Ralphs<br>
&gt; Associate Professor, Lehigh University (permanent)<br>
&gt; Visiting Lecturer, Operations Research Society of New Zealand (current)<br>
&gt; (610)628-1280<br>
&gt; ted &#39;at&#39; lehigh &#39;dot&#39; edu<br>
&gt; <a href="http://coral.ie.lehigh.edu/%7Eted" target="_blank">coral.ie.lehigh.edu/~ted</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Symphony mailing list<br>
<a href="mailto:Symphony@list.coin-or.org" target="_blank">Symphony@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/symphony" target="_blank">http://list.coin-or.org/mailman/listinfo/symphony</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
Symphony mailing list<br>
<a href="mailto:Symphony@list.coin-or.org">Symphony@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/symphony" target="_blank">http://list.coin-or.org/mailman/listinfo/symphony</a><br>
<br></blockquote></div><br>