|
@@ -1663,43 +1663,21 @@ public class PowerCurveFittingByTimeService {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if(i<10)
|
|
|
+ if(i!=0)
|
|
|
{
|
|
|
- return false;
|
|
|
- }else {
|
|
|
|
|
|
- for(int j=i-10;j<i;j++)
|
|
|
- {
|
|
|
-// //设置时间为10分钟前,10钟前有停机事件数据进行过滤
|
|
|
-// if (ztls.get(j).getPointValueInDouble() == 4) {
|
|
|
-//
|
|
|
-// return false;
|
|
|
-// }
|
|
|
- //设置时间为10分钟后,运行后10分钟数据进行过滤
|
|
|
- if (ztls.get(j).getPointValueInDouble() != 2) {
|
|
|
-
|
|
|
- return false;
|
|
|
- }
|
|
|
+ if (ztls.get(i-1).getPointValueInDouble() != 2) {
|
|
|
+ return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- int number=i+10;
|
|
|
-
|
|
|
- if(number>ztls.size())
|
|
|
- {
|
|
|
- number=ztls.size();
|
|
|
+ //欠发
|
|
|
+ if (fs.getPointValueInDouble() == 0 && fs.getPointValueInDouble() >= 6 && fs.getPointValueInDouble() < 12.5 && qfztls.get(i).getPointValueInDouble() > 2) {
|
|
|
+ return false;
|
|
|
+ }else if (fs.getPointValueInDouble() >= 12.5 && qfztls.get(i).getPointValueInDouble() < 1) {
|
|
|
+ return false;
|
|
|
}
|
|
|
|
|
|
- for(int j=i;j<number;j++)
|
|
|
- {
|
|
|
-
|
|
|
- //设置时间为10分钟后,运行后10分钟数据进行过滤
|
|
|
- if (ztls.get(j).getPointValueInDouble() != 2) {
|
|
|
-
|
|
|
- return false;
|
|
|
- }
|
|
|
- }
|
|
|
|
|
|
if (CacheContext.wtmap.containsKey(windturbineId)) {
|
|
|
String modelid = CacheContext.wtmap.get(windturbineId).getModelId();
|
|
@@ -1727,30 +1705,25 @@ public class PowerCurveFittingByTimeService {
|
|
|
if (k < 0.9 && speed <= 4 && speed > 3.5) {
|
|
|
return false;
|
|
|
}
|
|
|
-// if (k < 0.85 && item.getSpeed() <= 3.5 && item.getSpeed() > 3) {
|
|
|
-// item.setFilter(1);
|
|
|
-// }
|
|
|
-// if (k < 0.4 && item.getSpeed() <= 3 && item.getSpeed() > 0) {
|
|
|
-// item.setFilter(1);
|
|
|
-// }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- //欠发状态大于2过滤掉
|
|
|
- if (qfztls.get(i).getPointValueInDouble() > 2) {
|
|
|
-
|
|
|
- return false;
|
|
|
- }
|
|
|
+//
|
|
|
+// //欠发状态大于2过滤掉
|
|
|
+// if (qfztls.get(i).getPointValueInDouble() > 2) {
|
|
|
+//
|
|
|
+// return false;
|
|
|
+// }
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
//功率曲线拟合
|
|
|
private void curveFittingBuilder(Date begin, Date end, int dimension, double scale, String pointIdGL, String pointIdFS, String pointIdZT, List<PointVo> sjglPoints, List<PointVo> zyglPoints, String windturbineId) throws Exception {
|
|
|
- double maxPower = windturbineCapacity.get(windturbineId) * 1.3;
|
|
|
+ double maxPower = windturbineCapacity.get(windturbineId) ;
|
|
|
double maxSpeed = 25;
|
|
|
List<PointfVo> sjglnhpoints = new ArrayList<>();
|
|
|
Map<Double, PointfVo> zyglnhpoints = new HashMap<>();
|