This repository has been archived on 2025-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
Files_for_MM/optimizerIenv.py
2025-01-26 17:26:49 +08:00

20 lines
341 B
Python

C=1
Cb=1e7
def f2(x):
return 1 - C*x/Cb
import numpy as np
import json
import matplotlib.pyplot as plt
colorList = json.load(open('color/config.json','r'))["color"]
plt.plot(np.arange(1e6,5e6,1e5),f2(np.arange(1e6,5e6,1e5)),label='Ienv',color=colorList[0])
plt.xlabel('total passengers')
plt.ylabel('Ienv')
plt.legend()
plt.show()