91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 717KB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-10
  • 語言: 其他
  • 標簽: tabu??search????

資源簡介

一個tabu search算法框架-a tabu search algorithm framework, 簡言之就是lib庫,有文檔說明和原代碼!

資源截圖

代碼片段和文件信息

/**?
????@file?EasyLocal.cpp
????@brief?Implementation?of?the?template-free?part.

????This?file?contains?part?of?the?implementation?of?the?
????EasyLocal++?framework.
????
????It?must?be?compiled?together?with?any?project?that?uses?the?
????framework?classes?or?at?least?it?must?be?linked?with
????the?static?library?that?contain?the?already?compiled?fragment?
????of?the?framework.
????
????@author?Andrea?Schaerf?(schaerf@uniud.it)?
????????????Luca?Di?Gaspero?(digasper@dimi.uniud.it)
????@version?0.2
????@date?18?Jan?2002
????@note?This?version?works?both?with?MS?Visual?C++?and?the?GNU?C++?
??????????compiler.?Yet?it?is?extensively?tested?only?with?the?GNU?compiler.
*/
#include?
#include?
#include?
#include?

#include?“EasyLocal.h“

namespace?easylocal?{
??
??/**?
??????Uniform?random?generator?it?picks?an?integer?value?in?the?range
??????[i?j].

??????@param?i?lower?bound?of?the?interval
??????@param?j?upper?bound?of?the?interval
??????@return?an?integer?in?the?range?[i?j]
??*/
??int?Random(int?i?int?j)
??{?
????static?bool?init?=?false;
????if?(init?==?false)??//?if?the?random?source?has?not?been?
??????{?????????????????//?initialized?yet
srand(time(0));?//?let‘s?initialize?it
init?=?true;
??????}
????return?(rand()?%?(j?-?i?+?1))?+?i;?//?return?the?randomly?picked?value
??}

??/**
?????Sets?the?number?of?experiments?the?solver?shall?perform.

?????@param?t?the?number?of?trials
??*/
??void?AbstractTester::SetSolverTrials(unsigned?int?t)
??{?trials?=?t;?}

??/**?
??????Sets?the?name?of?the?file?to?be?used?as?log?for?the?
??????experiments.

??????@param?s?the?name?of?the?file
??*/
??void?AbstractTester::SetLogFile(std::string?s)
??{?logstream?=?new?std::ofstream(s.c_str());?}

??/**?
??????Sets?the?prefix?for?the?output?file.?Therefore?if?during?a
??????batch?of?experiments?is?required?to?provide?also?the?output?it?will
??????be?written?on?files?whose?name?starts?with?the?given?prefix.

??????@param?s?the?prefix?to?be?used.
??*/
??void?AbstractTester::SetOutputPrefix(std::string?s)
??{?output_file_prefix?=?s;?}

??/**?
??????Sets?the?prefix?for?the?plot?file.?If?plotting?is?required?the?tester
??????will?write?it?on?a?set?of?files?whose?name?starts?with?the?given?prefix.

??????@param?s?the?prefix?to?be?used?
??*/
??void?AbstractTester::SetPlotPrefix(std::string?s)
??{?plot_file_prefix?=?s;?}?

??//
??//?Actual?Runner?Parameters?Classes?related?methods
??//
??
??/**?
??????Constructs?a?ParameterData?object?with?name?n?type?t?and?value?v.
??????
??????@param?n?the?parameter?name
??????@param?t?the?parameter?type
??????@param?v?the?parameter?value
??*/
??ParameterData::ParameterData(std::string?n?std::string?t?ValueType?v)
????:?name(n)?type(t)?value(v)
??{}
??
??/**?
??????Returns?the?name?of?the?parameter.
??????
??????@return?the?name?of?the?parameter.
??*/
??std::string?ParameterData

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2002-01-18?14:17??miniEasyLocal++\
?????目錄???????????0??2001-11-07?09:33??miniEasyLocal++\bin\
?????文件??????110592??2001-03-13?17:45??miniEasyLocal++\bin\bison.exe
?????文件??????413796??2001-03-13?17:45??miniEasyLocal++\bin\flex.exe
?????目錄???????????0??2001-11-07?09:33??miniEasyLocal++\doc\
?????文件????????4224??2001-06-09?16:59??miniEasyLocal++\doc\annotated.html
?????文件????????7301??2001-06-09?16:59??miniEasyLocal++\doc\classes.html
?????文件????????2516??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractMoveTester-members.html
?????文件?????????912??2001-06-09?12:58??miniEasyLocal++\doc\class_easylocal__AbstractMoveTester.gif
?????文件???????10512??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractMoveTester.html
?????文件????????2088??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractMoveTester_inherit_graph.gif
?????文件????????2298??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractSolver-members.html
?????文件????????3075??2001-06-09?12:58??miniEasyLocal++\doc\class_easylocal__AbstractSolver.gif
?????文件????????7550??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractSolver.html
?????文件???????11183??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractSolver_inherit_graph.gif
?????文件????????3361??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractTester-members.html
?????文件?????????784??2001-06-09?12:58??miniEasyLocal++\doc\class_easylocal__AbstractTester.gif
?????文件???????17605??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractTester.html
?????文件????????1768??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__AbstractTester_inherit_graph.gif
?????文件????????5915??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ComparativeSolver-members.html
?????文件????????2636??2001-06-09?12:58??miniEasyLocal++\doc\class_easylocal__ComparativeSolver.gif
?????文件????????9318??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ComparativeSolver.html
?????文件???????19127??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ComparativeSolver_coll_graph.gif
?????文件????????8626??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ComparativeSolver_inherit_graph.gif
?????文件????????8014??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__HillClimbing-members.html
?????文件????????1544??2001-06-09?12:58??miniEasyLocal++\doc\class_easylocal__HillClimbing.gif
?????文件???????16750??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__HillClimbing.html
?????文件???????14320??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__HillClimbing_coll_graph.gif
?????文件????????4399??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__HillClimbing_inherit_graph.gif
?????文件????????2443??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ListItem-members.html
?????文件????????7638??2001-06-09?16:59??miniEasyLocal++\doc\class_easylocal__ListItem.html
............此處省略180個文件信息

評論

共有 條評論