资源简介
一个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 快速参考指南
相关资源
- 数据库系统基础教程答案第三版机械
- AXURE移动端素材元件库68580
- E4A无障碍跨程序操作类库(带源码、
- 软考数据库系统工程师复习资料(完
- Visio图标-最新最全的网络通信图标库
- Python中Numpy库最新教程
- 60个HFSS 仿真模型库
-
st
yles 引文样式语言( CSL ) 引文样 - MoNyog8.5+破解补丁
- ANSYS LS-DYNA
- 全国4级地址库,京东数据
- 一个超简单的企业管理系统(带ACCE
- 数据库课设:图书管理系统报告
- 合同管理系统的源代码(附数据库)
- ado数据库MFC图书管理系统vs2010
- 先进先出库存管理excel表格.rar
- 在线题库管理
- 矩阵基本运算函数库
- 数据库VFP课程设计
- 服装店进销存管理系统
- 数据库实现学生成绩管理系统选课管
- 排队机叫号 源代码
- 课程作业:模拟仓库管理系统
- Access数据库在线编辑器
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- Php 导出数据为EXCEL程序
- 人大金仓数据库系统表
- 伪原创同义词库(13000条)
- 模拟ATM柜员机系统--连接数据库
- 用工厂模式开发多数据库连接类
评论
共有 条评论