采用了基本的蚁群算法来求解0-1背包问题
源代码在线查看: i-ant.plg
Build Log
--------------------Configuration: i-ant - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\GUNNER\LOCALS~1\Temp\RSP377.tmp" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/i-ant.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"C:\Documents and Settings\GUNNER\桌面\i-ant\i-ant.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\GUNNER\LOCALS~1\Temp\RSP377.tmp"
Creating temporary file "C:\DOCUME~1\GUNNER\LOCALS~1\Temp\RSP378.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/i-ant.pdb" /debug /machine:I386 /out:"Debug/i-ant.exe" /pdbtype:sept
".\Debug\i-ant.obj"
]
Creating command line "link.exe @C:\DOCUME~1\GUNNER\LOCALS~1\Temp\RSP378.tmp"
Output Window
Compiling...
i-ant.cpp
Linking...
Results
i-ant.exe - 0 error(s), 0 warning(s)