资源简介
一个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个文件信息
- 上一篇:ok6410按键驱动
- 下一篇:CMMI 开发 V2.0 快速参考指南
相关资源
-
essba
se操作指南 - 公交车路线查询系统 算法 后台数据库
- 俄语的字库
- 航空订票系统数据库版全套毕业设计
- 98-364数据库管理
- sama图库vsd文件
- TMS320F2812原理图库和PCB库文件(Prote
- 正点原子STM32F407 AD封装库
- gbk16*16点阵字库文件
- 4万成语库.
- jansson windows 下使用的x64和x86的lib库
- 数据库课程设计—房屋销售管理
- pefile源码库
- 二调arcgis系统库
- 关于数据库的毕业论文英文翻译
- elasticsearch聚合后分页
- Axure8.0基于Echarts的动态图表元件库,
- 毕业论文数据库外文翻译
- greenplum开发规范
- codesys库函数说明
- protelDXP单片机89C51等的元件库
- 湖南省综合评标专家培训题库2019.do
- LCD1602 PCB封装库
- 内存修改器MemSearch
- NUAA人脸库
- stm32f1 M3 浮点快速运算库
- opengl类库大全glaux.lib;glu.lib;glu32.lib;
- 广工数据库课设
- tc8 x64 openssl库文件补丁
- 《数据库系统原理与应用》课程设计
评论
共有 条评论