【Lua 代码】计算机组成本
来源:互联网 发布:淘宝网男装潮款 编辑:程序博客网 时间:2024/05/17 03:14
- risk = 0
- eff = 1
- csi_steam = 70 -- 单位电能标准燃价:元/MWh--推荐70元/MWh
- csi_hydro = csi_steam --also small-hydro
- csi = csi_hydro
- a1=0.982
- a2=0.407
- b0=17
- installprice = 6178
- cost_a = risk + a2 / eff
- cost_b = a1 * csi / eff
- cost_c = b0 / eff + installprice * 0.002313
- print("成本系数:",cost_a, cost_b, cost_c)
- bidrule = 1 -- 1:等微增率 0:等报价
- factor = 2
- if bidrule ~= 1 then bidrule = 1 end
- transfee = 30 -- default
- expGain = 0 -- 期望收益
- bid_a = factor * cost_a
- bid_b = cost_b + cost_c + transfee + expGain
- p_test = 200
- p_max = 800
- print("成交量:", p_test)
- print("报价系数(合同和现货):", bid_a, bid_b)
- print("成交价:", bid_a * p_test + bid_b)
- print("成本:", cost_a * p_test ^ 2 + (cost_b + transfee) * p_test + cost_c * p_max)
- new_a = cost_a
- new_b = cost_b + transfee
- new_c = cost_c * p_max
- print("新成本系数:", new_a, new_b, new_c)
- new_bidb = new_b + new_c / p_max + new_a * p_max
- print("新竞标系数:", new_bidb)
- -- print("成交额:", (bid_a * p_test + bid_b) * p_test) -- 单一市场时