def setup_diesel_gen(): op = Output(capacity=np.array([ 0, 0.0440436111111194, 0.0959544444443891, 0.274149999999907, 1.00805555555550, 1.13232999999996 ]), electricity=np.array([ 0, 0.0386165028943384, 0.0640837968864363, 0.276878400371175, 0.429227220146803, 0.567247108410006 ])) ss = StateSpace(a=np.matrix('0,1; -1.924e-6, -0.0028'), b=np.matrix('0; 1.9240e-6'), c=np.matrix('1,0'), d=np.matrix('0')) stu = Startup(time=np.array([0, 1000]), electricity=np.array([0, 333.3333]), input=np.array([0, 1.2979e3])) shd = Shutdown(time=np.array([0, 1000]), electricity=np.array([333.3333, 0]), input=np.array([1.2979e3, 0])) start_cost = 66.6667 dx_dt = 666.6692 gen = ElectricGenerator(name='Gen3', source='diesel', size=1000, output=op, state_space=ss, startup=stu, shutdown=shd, start_cost=start_cost, ramp_rate=dx_dt) return gen
def setup_electric_gen(name='GT0'): p_base = 100 if name == 'slack_bus_1': size = 85 fundata = {"bp": 0.008, "fp": 7.0, "cp": 200} lb = 0 elif name == 'GT1': size = 80 fundata = {"bp": 0.009, "fp": 6.3, "cp": 180} lb = 0 elif name == 'GT2': size = 70 fundata = {"bp": 0.007, "fp": 6.8, "cp": 140} lb = 0 gt = ElectricGenerator(name=name, size=size, ub=size / p_base, lb=lb / p_base, fundata=fundata, start_cost=323.4671, restart_time=15, ramp_rate=1.3344e3) return gt