Iscore.py: the interface file(abstract class ), score method should imple score.py: the implement class score_plot: the program entry(main_file) score_3D: not implement
- install python3
- intstall
- install matplotlib
python3 ./score_plot.py
- create new python file
- to implement score interface
import numpy as np
from Iscore import IScore
class Score(IScore):
# k: control variable
# x: used ratio
def score(self,k,x:np.ndarray):
u=x/100*self.capacity
return u/self.capacity- modify score_plot.py
- run
