Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hydraulicModel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘乐
hydraulicModel
Commits
405b7a54
Commit
405b7a54
authored
Sep 28, 2020
by
刘乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态库创建
parent
bb696b4b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
3 deletions
+31
-3
genetic.h
pandaAlgorithm/genetic.h
+3
-1
pandaAlgorithm.h
pandaAlgorithm/pandaAlgorithm.h
+18
-0
pandaAlgorithm.vcxproj
pandaAlgorithm/pandaAlgorithm.vcxproj
+7
-2
pandaAlgorithm.vcxproj.filters
pandaAlgorithm/pandaAlgorithm.vcxproj.filters
+3
-0
No files found.
pandaAlgorithm/genetic.h
View file @
405b7a54
#pragma once
#include "pandaAlgorithm.h"
/**
遗传算法对象
*/
class
Genetic
class
PANDAALGORITHM_API
Genetic
{
public
:
Genetic
();
...
...
@@ -47,6 +48,7 @@ public:
*@brief 更新种群
*/
void
update
();
void
setNumPop
(
int
numPop
)
{
mNumPop
=
numPop
;
}
int
numPop
()
const
{
return
mNumPop
;
}
...
...
pandaAlgorithm/pandaAlgorithm.h
0 → 100644
View file @
405b7a54
#pragma once
#if defined(PANDAALGORITHM_DLL)
#if defined(PANDAALGORITHM_EXPORTS)
#if defined(_MSC_VER)
#define PANDAALGORITHM_API __declspec(dllexport)
#else
#define PANDAALGORITHM_API
#endif
#else
#if defined(_MSC_VER)
#define PANDAALGORITHM_API __declspec(dllimport)
#else
#define PANDAALGORITHM_API
#endif
#endif
#else
#define PANDAALGORITHM_API
#endif
pandaAlgorithm/pandaAlgorithm.vcxproj
View file @
405b7a54
...
...
@@ -119,7 +119,7 @@
<ClCompile>
<WarningLevel>
Level3
</WarningLevel>
<SDLCheck>
true
</SDLCheck>
<PreprocessorDefinitions>
_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
_DEBUG;_CONSOLE;
PANDAALGORITHM_DLL;PANDAALGORITHM_EXPORTS;
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<ConformanceMode>
true
</ConformanceMode>
</ClCompile>
<Link>
...
...
@@ -133,7 +133,7 @@
<FunctionLevelLinking>
true
</FunctionLevelLinking>
<IntrinsicFunctions>
true
</IntrinsicFunctions>
<SDLCheck>
true
</SDLCheck>
<PreprocessorDefinitions>
NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<PreprocessorDefinitions>
NDEBUG;_CONSOLE;
PANDAALGORITHM_DLL;PANDAALGORITHM_EXPORTS;
%(PreprocessorDefinitions)
</PreprocessorDefinitions>
<ConformanceMode>
true
</ConformanceMode>
</ClCompile>
<Link>
...
...
@@ -142,9 +142,14 @@
<OptimizeReferences>
true
</OptimizeReferences>
<GenerateDebugInformation>
true
</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>
copy pandaAlgorithm.h $(OutDir)..\include /y
copy genetic.h $(OutDir)..\include /y
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude
Include=
"genetic.h"
/>
<ClInclude
Include=
"pandaAlgorithm.h"
/>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"genetic.cpp"
/>
...
...
pandaAlgorithm/pandaAlgorithm.vcxproj.filters
View file @
405b7a54
...
...
@@ -18,6 +18,9 @@
<ClInclude
Include=
"genetic.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
<ClInclude
Include=
"pandaAlgorithm.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"genetic.cpp"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment