Пример #1
0
def createObject(type):
    hvac= nmub.HVAC(25,omega[0])
    Tnhat=[2.0,4.0,5.0,2.0,5.0]
    hvac.setTn(Tnhat)
    bk=nmub.bkGen(omega[2])
    dc =nmub.DC([2.5,4.,4.],[2000,2000,2000],omega[1],omega_sla,omega_wat)
    mub=nmub.operator([1,2,3],[1,2,3],100,[1,2,3],[1,2,3],200,omega,type)
    return hvac,dc,bk,mub
Пример #2
0
import  unNormalizedMUB as nmub
reload(nmub)

#omega(hvac,dc,bk)
omega=np.array([15.0,1.0, 0.3*1e-3]) #0.3$/KWh
#omega=np.array([0,1.0, 0.3*1e-3]) #set baseline1
#wear and tear cost
omega_wat=np.array([0.1,0.3,0.5])
#sla weight
omega_sla=np.array([0.7,0.5,0.6])


hvac= nmub.HVAC(25,omega[0])
Tnhat=[2.0,4.0,5.0,2.0,5.0]
hvac.setTn(Tnhat)
bk=nmub.bkGen(omega[2])
rho=1

Q=1e6 #Wh ( 1MWh)
n=3 #number of offices
I=3  # number of DCs

nmub.omega_wat=omega_wat
nmub.Q=Q
nmub.n=n
nmub.I=I
nmub.rho=rho
#hvac.userComfCost()
#hvac.enReduc()
#hvac.optimizeOfficei(1,5)
#initialize the datacenter with services rate of each tenant per s and max server