-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheLoad.py
37 lines (28 loc) · 1.54 KB
/
eLoad.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import gurobipy as gp
from gurobipy import GRB
import numpy as np
import sys
import matplotlib.pyplot as plt
l1 = np.array([355.050629,356.118774,355.218475,384.896851,356.576508,357.69043,358.087158,405.587769,415.725708,462.145981,597.048951,717.105103,633.380097,681.292724,703.433228,678.759736,669.543427,643.66455,362.237549,406.228638,350.320404,372.735596,354.379272,362.34433])
l2 = np.array([395.593262,364.144867,404.885864,362.756317,370.690918,364.572144,362.771576,402.932739,454.28466,503.890976,497.604355,511.810303,653.674316,705.508392,658.938599,731.188964,721.102875,707.705689,644.061279,370.065308,369.592285,367.120361,374.978638,360.620117])
l3 = np.array([368.051147,361.993408,362.619019,369.14978,368.356293,384.484863,375.604248,361.71875,380.166626,541.491684,730.807464,750.292969,640.338135,709.307861,715.609741,714.129638,683.322113,687.380982,673.617554,359.262085,359.368896,366.49472,371.881104,368.615723])
l4 = np.array([368.585205,361.032074,361.123657,357.904053,358.590698,385.629272,365.838623,393.334961,414.581291,652.972382,703.723144,717.410248,637.591492,667.269897,717.044067,752.169769,733.035278,713.336182,642.184449,642.352264,637.210083,639.651459,645.983856,373.4375])
l1 -= min(l1)
l2 -= min(l2)
l3 -= min(l3)
l4 -= min(l4)
l1 *= 100/max(l1)
l2 *= 100/max(l2)
l3 *= 100/max(l3)
l4 *= 100/max(l4)
l1 += 40
l2 += 40
l3 += 40
l4 += 40
print(l4.reshape((-1,1)))
# fig,ax = plt.subplots(1,1)
# ax.plot(np.arange(24),l4)
# ax.plot(np.arange(24),l3)
# ax.plot(np.arange(24),l2)
# ax.plot(np.arange(24),l1)
# plt.show()