Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds CMake to Project and other improvements #7

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
bcf3746
- Adds CMake files
sergiosvieira Jul 27, 2017
2092387
Updates gitigore
sergiosvieira Jul 27, 2017
3b0141f
- Removed memory leaks
sergiosvieira Jul 27, 2017
731b06f
Change source code format style
sergiosvieira Jul 27, 2017
587ba23
- Adds file headers
sergiosvieira Jul 27, 2017
14c8310
- Updates cmake files
sergiosvieira Jul 27, 2017
d36c57d
- Replace all NULL to nullptr
sergiosvieira Jul 27, 2017
47ce490
- Adds new author
sergiosvieira Jul 27, 2017
74cafac
- Adds define to check memory leaks on visual studio
sergiosvieira Jul 28, 2017
36c9498
Removed unecessary namespaces
sergiosvieira Jul 28, 2017
c9b6924
- Adds aliases to common data structures
sergiosvieira Jul 28, 2017
162447d
refactored omopso main file
sergiosvieira Jul 28, 2017
dbd90ea
Included the sigaproblem.
joaogf-funceme Aug 4, 2017
0ac153d
Inserted the cmakeList.
joaogf-funceme Aug 4, 2017
c18d537
- Adds Range Mutation and some improvements
sergiosvieira Aug 4, 2017
41c7a54
- Implemented Range Mutation
sergiosvieira Aug 4, 2017
a56e02d
- Improvements on nonUniformMutation class
sergiosvieira Aug 7, 2017
26504e7
- Improvements on UniformMutation class
sergiosvieira Aug 7, 2017
59bb8e3
- Improvements on OMOPS particle moving
sergiosvieira Aug 7, 2017
215d5ca
Added the test functions F1 and F3.
joaogf-funceme Aug 7, 2017
7660388
- Adds Objective Function Barros F1 F2
sergiosvieira Aug 7, 2017
a1056f7
Merge branch 'master' of gitlab.funceme.br:antonio.vieira/jMetalCpp
sergiosvieira Aug 7, 2017
3bdcd66
- Adds Problems F1F3, F1F5
sergiosvieira Aug 8, 2017
3145e48
Added the test functions F1 and F4.
joaogf-funceme Aug 8, 2017
31c8e6b
Merge branch 'master' of gitlab.funceme.br:antonio.vieira/jMetalCpp
joaogf-funceme Aug 8, 2017
7b23265
- Adds problem Barros F5 F3
sergiosvieira Aug 8, 2017
04c72d9
Merge branch 'master' of gitlab.funceme.br:antonio.vieira/jMetalCpp
sergiosvieira Aug 8, 2017
e1c5391
Graphics of test of OMOPSO by functions Barros.
joaogf-funceme Aug 8, 2017
93fa9b4
- Improvements on OMOPSO
sergiosvieira Aug 8, 2017
e2e48d5
Merge branch 'master' of gitlab.funceme.br:antonio.vieira/jMetalCpp
sergiosvieira Aug 8, 2017
cd23128
Graphic of OMOPSO on SIGA.
joaogf-funceme Aug 8, 2017
4f17749
- Adds true pareto fronts
sergiosvieira Aug 9, 2017
8a08e08
- Adds Barros problems
Jun 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
297 changes: 297 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Ignore the build and lib dirs
build/
lib/
vs/

# Ignore any executables
bin/
Expand All @@ -18,3 +19,299 @@ nbproject/
*.xcworkspacedata
*.xcuserstate
*.xcsettings

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

# Visual Studio 2015 cache/options directory
.vs/
# Uncomment if you have tasks that create the project's static files in wwwroot
#wwwroot/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

# NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

# Benchmark Results
BenchmarkDotNet.Artifacts/

# .NET Core
project.lock.json
project.fragment.lock.json
artifacts/
**/Properties/launchSettings.json

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opendb
*.opensdf
*.sdf
*.cachefile
*.VC.db
*.VC.VC.opendb

# Visual Studio profiler
*.psess
*.vsp
*.vspx
*.sap

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding add-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# Visual Studio code coverage results
*.coverage
*.coveragexml

# NCrunch
_NCrunch_*
.*crunch*.local.xml
nCrunchTemp_*

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# Microsoft Azure Web App publish settings. Comment the next line if you want to
# checkin your Azure Web App publish settings, but sensitive information contained
# in these scripts will be unencrypted
PublishScripts/

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# Uncomment if necessary however generally it will be regenerated when needed
#!**/packages/repositories.config
# NuGet v3's project.json files produces more ignorable files
*.nuget.props
*.nuget.targets

# Microsoft Azure Build Output
csx/
*.build.csdef

# Microsoft Azure Emulator
ecf/
rcf/

# Windows Store app package directories and files
AppPackages/
BundleArtifacts/
Package.StoreAssociation.xml
_pkginfo.txt
*.appx

# Visual Studio cache files
# files ending in .cache can be ignored
*.[Cc]ache
# but keep track of directories ending in .cache
!*.[Cc]ache/

# Others
ClientBin/
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.jfm
*.pfx
*.publishsettings
orleans.codegen.cs

# Since there are multiple workflows, uncomment next line to ignore bower_components
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
#bower_components/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf
*.ndf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/

# GhostDoc plugin setting file
*.GhostDoc.xml

# Node.js Tools for Visual Studio
.ntvs_analysis.dat
node_modules/

# Typescript v1 declaration files
typings/

# Visual Studio 6 build log
*.plg

# Visual Studio 6 workspace options file
*.opt

# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
*.vbw

# Visual Studio LightSwitch build output
**/*.HTMLClient/GeneratedArtifacts
**/*.DesktopClient/GeneratedArtifacts
**/*.DesktopClient/ModelManifest.xml
**/*.Server/GeneratedArtifacts
**/*.Server/ModelManifest.xml
_Pvt_Extensions

# Paket dependency manager
.paket/paket.exe
paket-files/

# FAKE - F# Make
.fake/

# JetBrains Rider
.idea/
*.sln.iml

# CodeRush
.cr/

# Python Tools for Visual Studio (PTVS)
__pycache__/
*.pyc

# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config

# Tabs Studio
*.tss

# Telerik's JustMock configuration file
*.jmconfig

# BizTalk build output
*.btp.cs
*.btm.cs
*.odx.cs
*.xsd.cs
78 changes: 78 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
cmake_minimum_required(VERSION 3.6)
project(jMetalCpp)
set(CMAKE_CXX_STANDARD 11)

function (ListToString result delim)
list(GET ARGV 2 temp)
math(EXPR N "${ARGC}-1")
foreach(IDX RANGE 3 ${N})
list(GET ARGV ${IDX} STR)
set(temp "${temp}${delim}${STR}")
endforeach()
set(${result} "${temp}" PARENT_SCOPE)
endfunction(ListToString)


define_property(GLOBAL PROPERTY SOURCE_LIST BRIEF_DOCS "Global list of source code" FULL_DOCS "Global list of source code")
set_property(GLOBAL PROPERTY SOURCE_LIST "")

macro(LIST_APPEND var)
set_property(GLOBAL APPEND PROPERTY SOURCE_LIST "${var}")
endmacro(LIST_APPEND)

define_property(GLOBAL PROPERTY HEADER_LIST BRIEF_DOCS "Global list of header code" FULL_DOCS "Global list of header code")
set_property(GLOBAL PROPERTY HEADER_LIST "")

macro(LIST_APPEND_HEADER var)
set_property(GLOBAL APPEND PROPERTY HEADER_LIST "${var}")
endmacro(LIST_APPEND_HEADER)

include_directories(
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/src/core
${PROJECT_SOURCE_DIR}/src/encodings
${PROJECT_SOURCE_DIR}/src/encodings/solutionType
${PROJECT_SOURCE_DIR}/src/encodings/variable
${PROJECT_SOURCE_DIR}/src/experiments
${PROJECT_SOURCE_DIR}/src/experiments/main
${PROJECT_SOURCE_DIR}/src/experiments/settings
${PROJECT_SOURCE_DIR}/src/experiments/util
${PROJECT_SOURCE_DIR}/src/main
${PROJECT_SOURCE_DIR}/src/metaheuristics
${PROJECT_SOURCE_DIR}/src/metaheuristics/gde3
${PROJECT_SOURCE_DIR}/src/metaheuristics/mochc
${PROJECT_SOURCE_DIR}/src/metaheuristics/moead
${PROJECT_SOURCE_DIR}/src/metaheuristics/nsgaII
${PROJECT_SOURCE_DIR}/src/metaheuristics/omopso
${PROJECT_SOURCE_DIR}/src/metaheuristics/paes
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective/cmaes
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective/cmaes/utils
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective/differentialEvolution
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective/geneticAlgorithm
${PROJECT_SOURCE_DIR}/src/metaheuristics/singleObjective/particleSwarmOptimization
${PROJECT_SOURCE_DIR}/src/metaheuristics/smpso
${PROJECT_SOURCE_DIR}/src/metaheuristics/smsemoa
${PROJECT_SOURCE_DIR}/src/operators
${PROJECT_SOURCE_DIR}/src/operators/crossover
${PROJECT_SOURCE_DIR}/src/operators/mutation
${PROJECT_SOURCE_DIR}/src/operators/selection
${PROJECT_SOURCE_DIR}/src/problems
${PROJECT_SOURCE_DIR}/src/problems/DTLZ
${PROJECT_SOURCE_DIR}/src/problems/LZ09
${PROJECT_SOURCE_DIR}/src/problems/singleObjective
${PROJECT_SOURCE_DIR}/src/problems/singleObjective/cec2005Competition
${PROJECT_SOURCE_DIR}/src/problems/ZDT
${PROJECT_SOURCE_DIR}/src/qualityIndicator
${PROJECT_SOURCE_DIR}/src/qualityIndicator/fastHypervolume
${PROJECT_SOURCE_DIR}/src/qualityIndicator/main
${PROJECT_SOURCE_DIR}/src/qualityIndicator/util
${PROJECT_SOURCE_DIR}/src/util
${PROJECT_SOURCE_DIR}/src/util/archive
${PROJECT_SOURCE_DIR}/src/util/comparators
${PROJECT_SOURCE_DIR}/src/util/wrapper
)
add_subdirectory(${PROJECT_SOURCE_DIR}/src)
get_property(my_source_list GLOBAL PROPERTY SOURCE_LIST)
get_property(my_header_list GLOBAL PROPERTY HEADER_LIST)
add_library(${PROJECT_NAME} ${my_source_list} ${my_header_list})
9 changes: 9 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
add_subdirectory(core)
add_subdirectory(encodings)
add_subdirectory(experiments)
add_subdirectory(main)
add_subdirectory(metaheuristics)
add_subdirectory(operators)
add_subdirectory(problems)
add_subdirectory(qualityIndicator)
add_subdirectory(util)
Loading