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
1dccbf58
Commit
1dccbf58
authored
Oct 15, 2020
by
刘乐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化调度接口
parent
f81d0b56
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
113 additions
and
3 deletions
+113
-3
funcDemo.vcxproj
funcDemo/funcDemo.vcxproj
+1
-0
funcDemo.vcxproj.filters
funcDemo/funcDemo.vcxproj.filters
+6
-3
FirstOptScheduling.cpp
pandaAlgorithm/FirstOptScheduling.cpp
+12
-0
FirstOptScheduling.h
pandaAlgorithm/FirstOptScheduling.h
+11
-0
OptScheduling.cpp
pandaAlgorithm/OptScheduling.cpp
+31
-0
OptScheduling.h
pandaAlgorithm/OptScheduling.h
+35
-0
pandaAlgorithm.vcxproj
pandaAlgorithm/pandaAlgorithm.vcxproj
+4
-0
pandaAlgorithm.vcxproj.filters
pandaAlgorithm/pandaAlgorithm.vcxproj.filters
+13
-0
No files found.
funcDemo/funcDemo.vcxproj
View file @
1dccbf58
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
<ClCompile
Include=
"CivHydrTest.cpp"
/>
<ClCompile
Include=
"CivHydrTest.cpp"
/>
<ClCompile
Include=
"CivTestContext.cpp"
/>
<ClCompile
Include=
"CivTestContext.cpp"
/>
<ClCompile
Include=
"main.cpp"
/>
<ClCompile
Include=
"main.cpp"
/>
<ClCompile
Include=
"main1.cpp"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClInclude
Include=
"CivHydrTest.h"
/>
<ClInclude
Include=
"CivHydrTest.h"
/>
...
...
funcDemo/funcDemo.vcxproj.filters
View file @
1dccbf58
...
@@ -15,15 +15,18 @@
...
@@ -15,15 +15,18 @@
</Filter>
</Filter>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"main.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"CivHydrTest.cpp"
>
<ClCompile
Include=
"CivHydrTest.cpp"
>
<Filter>
源文件
</Filter>
<Filter>
源文件
</Filter>
</ClCompile>
</ClCompile>
<ClCompile
Include=
"CivTestContext.cpp"
>
<ClCompile
Include=
"CivTestContext.cpp"
>
<Filter>
源文件
</Filter>
<Filter>
源文件
</Filter>
</ClCompile>
</ClCompile>
<ClCompile
Include=
"main1.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"main.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClInclude
Include=
"CivHydrTest.h"
>
<ClInclude
Include=
"CivHydrTest.h"
>
...
...
pandaAlgorithm/FirstOptScheduling.cpp
0 → 100644
View file @
1dccbf58
#include "FirstOptScheduling.h"
FirstOptScheduling
::
FirstOptScheduling
()
{
}
FirstOptScheduling
::~
FirstOptScheduling
()
{
}
\ No newline at end of file
pandaAlgorithm/FirstOptScheduling.h
0 → 100644
View file @
1dccbf58
#pragma once
#include "pandaAlgorithm.h"
class
PANDAALGORITHM_API
FirstOptScheduling
{
public
:
FirstOptScheduling
();
~
FirstOptScheduling
();
};
pandaAlgorithm/OptScheduling.cpp
0 → 100644
View file @
1dccbf58
#include "OptScheduling.h"
OptScheduling
::
OptScheduling
()
{
}
OptScheduling
::~
OptScheduling
()
{
}
double
OptScheduling
::
pressureDifference
(
const
std
::
vector
<
double
>&
HC
,
const
std
::
vector
<
double
>&
HF
)
{
double
res
=
0
;
return
res
;
}
double
OptScheduling
::
pumpPower
()
{
double
res
=
0
;
return
res
;
}
double
OptScheduling
::
waterProductionCost
()
{
double
res
=
0
;
return
res
;
}
\ No newline at end of file
pandaAlgorithm/OptScheduling.h
0 → 100644
View file @
1dccbf58
#pragma once
#include "pandaAlgorithm.h"
#include <vector>
class
PANDAALGORITHM_API
OptScheduling
{
public
:
explicit
OptScheduling
();
virtual
~
OptScheduling
();
/**
* @brief 供需压差函数
* @param [in] HC[i]: 测压点i预测压力值
* @param [in] HF[I]: 测压点i要求的最低供水服务压力。
* @return
*/
virtual
double
pressureDifference
(
const
std
::
vector
<
double
>&
HC
,
const
std
::
vector
<
double
>&
HF
);
/**
* @brief 水泵供水功耗
* @param
* @param
* @return
*/
virtual
double
pumpPower
();
/**
* @brief 制水成本
* @param
* @param
* @return
*/
virtual
double
waterProductionCost
();
};
\ No newline at end of file
pandaAlgorithm/pandaAlgorithm.vcxproj
View file @
1dccbf58
...
@@ -148,11 +148,15 @@ copy genetic.h $(OutDir)..\include /y</Command>
...
@@ -148,11 +148,15 @@ copy genetic.h $(OutDir)..\include /y</Command>
</PostBuildEvent>
</PostBuildEvent>
</ItemDefinitionGroup>
</ItemDefinitionGroup>
<ItemGroup>
<ItemGroup>
<ClInclude
Include=
"FirstOptScheduling.h"
/>
<ClInclude
Include=
"genetic.h"
/>
<ClInclude
Include=
"genetic.h"
/>
<ClInclude
Include=
"OptScheduling.h"
/>
<ClInclude
Include=
"pandaAlgorithm.h"
/>
<ClInclude
Include=
"pandaAlgorithm.h"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"FirstOptScheduling.cpp"
/>
<ClCompile
Include=
"genetic.cpp"
/>
<ClCompile
Include=
"genetic.cpp"
/>
<ClCompile
Include=
"OptScheduling.cpp"
/>
</ItemGroup>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
<ImportGroup
Label=
"ExtensionTargets"
>
...
...
pandaAlgorithm/pandaAlgorithm.vcxproj.filters
View file @
1dccbf58
...
@@ -21,10 +21,22 @@
...
@@ -21,10 +21,22 @@
<ClInclude
Include=
"pandaAlgorithm.h"
>
<ClInclude
Include=
"pandaAlgorithm.h"
>
<Filter>
头文件
</Filter>
<Filter>
头文件
</Filter>
</ClInclude>
</ClInclude>
<ClInclude
Include=
"OptScheduling.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
<ClInclude
Include=
"FirstOptScheduling.h"
>
<Filter>
头文件
</Filter>
</ClInclude>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<ClCompile
Include=
"genetic.cpp"
>
<ClCompile
Include=
"genetic.cpp"
>
<Filter>
源文件
</Filter>
<Filter>
源文件
</Filter>
</ClCompile>
</ClCompile>
<ClCompile
Include=
"OptScheduling.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
<ClCompile
Include=
"FirstOptScheduling.cpp"
>
<Filter>
源文件
</Filter>
</ClCompile>
</ItemGroup>
</ItemGroup>
</Project>
</Project>
\ No newline at end of file
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