Hi Terry,<br><br>The "VRP" problem in the O.R. literature reads "Given a fleet of x trucks, ...", 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 "variant" problem.<br>
<br>Thank you Ted for Symphony... (!)<br><br>best regards,<br>Claude Ph Medard<br><br><br><br><br><div class="gmail_quote">On Wed, Jan 21, 2009 at 11:29 AM, Yiqing Zhong <span dir="ltr"><<a href="mailto:yiqing.zhong@ugent.be">yiqing.zhong@ugent.be</a>></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 "GLPK" was fixed, gmpl<br>
model can be read. I added the library 'glpk' 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 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 "__OSI_CLP__" to "__OSI_CPLEX__", also<br>
change the path definitions of the include files: add<br>
"..\..\..\..\COIN\Osi\OsiCpx" and "C:\ILOG\cplex81\include\ilcplex"<br>
(assuming CPLEX is installed here) as the<br>
solver's header files path definitions, but the errors are happened<br>
during the BBuilding process:<br>
<br>
"7>libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol "public: __thiscall<br>
OsiCpxSolverInterface::OsiCpxSolverInterface(void)"<br>
(??0OsiCpxSolverInterface@@QAE@XZ) referenced in function "void<br>
__cdecl open_lp_solver(struct LPDATA *)"<br>
(?open_lp_solver@@YAXPAULPDATA@@@Z)<br>
7>libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol _CPXgetslack@20 referenced in function "void __cdecl<br>
get_slacks(struct LPDATA *)" (?get_slacks@@YAXPAULPDATA@@@Z)<br>
7>libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol "public: struct cpxenv * __thiscall<br>
OsiCpxSolverInterface::getEnvironmentPtr(void)"<br>
(?getEnvironmentPtr@OsiCpxSolverInterface@@QAEPAUcpxenv@@XZ)<br>
referenced in function "void __cdecl get_slacks(struct LPDATA *)"<br>
(?get_slacks@@YAXPAULPDATA@@@Z)<br>
7>libsymphony.lib(lp_solver.obj) : error LNK2019: unresolved external<br>
symbol "public: struct cpxlp * __thiscall<br>
OsiCpxSolverInterface::getLpPtr(int)"<br>
(?getLpPtr@OsiCpxSolverInterface@@QAEPAUcpxlp@@H@Z) referenced in<br>
function "void __cdecl get_slacks(struct LPDATA *)"<br>
(?get_slacks@@YAXPAULPDATA@@@Z)<br>
7>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>Build log was saved at "file://d:\Microsoft Visual Studio<br>
8\SYMPHONY-5.1.10\SYMPHONY\MSVisualStudio\v8\Release\BuildLog.htm"<br>
7>symphony - 5 error(s), 0 warning(s)<br>
========== Rebuild All: 6 succeeded, 1 failed, 0 skipped =========="<br>
<br>
I try the "__CPLEX__" again, it connot work yet. What's the possible problem?<br>
<br>
Thank you!<br>
<br>
Bests!<br>
<br>
Terry<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Quoting Ted Ralphs <ted@Lehigh.EDU>:<br>
<br>
> Yiqing Zhong wrote:<br>
>> Hi! Menal,<br>
>><br>
>> Thank you very much for your answer. Followed with your<br>
>> instruction, I can execute the project now. However in the 'VRP'<br>
>> project, there still some problems:<br>
>><br>
>> I set the arguments "-F ..\..\sample.vrp" to try to check the<br>
>> sample solution under the VRP folder, but the error is shown:<br>
>><br>
>> "PROBELM NAME: ei151<br>
>> TYPE: CVRP<br>
>> DIMENSION: 51<br>
>> ERROR: Number of trucks not specified or computed for VRP"<br>
><br>
> For the SYMPHONY VRP solver, you need to specify the number of trucks<br>
> on the command line with "-N 5" for instance. You're getting the error<br>
> because you haven't done that. I thought that the README specified<br>
> this, but if it doesn't, I guess we need to add it. Thanks for using<br>
> SYMPHONY.<br>
><br>
> Cheers,<br>
><br>
> Ted<br>
> --<br>
> Dr. Ted Ralphs<br>
> Associate Professor, Lehigh University (permanent)<br>
> Visiting Lecturer, Operations Research Society of New Zealand (current)<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>
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>
</div></div></blockquote></div><br>