Commit 1dccbf58 authored by 刘乐's avatar 刘乐

优化调度接口

parent f81d0b56
...@@ -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" />
......
...@@ -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">
......
#include "FirstOptScheduling.h"
FirstOptScheduling::FirstOptScheduling()
{
}
FirstOptScheduling::~FirstOptScheduling()
{
}
\ No newline at end of file
#pragma once
#include "pandaAlgorithm.h"
class PANDAALGORITHM_API FirstOptScheduling
{
public:
FirstOptScheduling();
~FirstOptScheduling();
};
#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
#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
...@@ -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">
......
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment