示例#1
0
 def insertRight(self, node):
     if PureTree.insertRight(self, node):
         self.emit(PYSIGNAL("insertRight"), (
             self,
             node,
         ))
         return True
     else:
         return False
示例#2
0
 def attach(self, node):
     if PureTree.attach(self, node):
         self.emit(PYSIGNAL("attach"), (
             self,
             node,
         ))
         return True
     else:
         return False
示例#3
0
 def prune(self):
     if PureTree.prune(self):
         self.emit(PYSIGNAL("prune"),(self,))
         return True
     else:
         return False
示例#4
0
 def insertRight(self,node):
     if PureTree.insertRight(self,node):
         self.emit(PYSIGNAL("insertRight"),(self,node,))
         return True
     else:
         return False
示例#5
0
 def attach(self,node):
     if PureTree.attach(self,node):
         self.emit(PYSIGNAL("attach"),(self,node,))
         return True
     else:
         return False
示例#6
0
from optimization import *

header, indices, data = import_csv("DLW_research_runs", indices=2)

for i in range(99, 109):
    name = indices[i][1]
    a, ra, eis, pref, temp, tail, growth, tech_chg, tech_scale, joinp, maxp, on, maps = data[
        i]
    print(name, ra, eis)
    if on == 1.0:
        on = True
    else:
        on = False
    maps = int(maps)

    t = TreeModel(decision_times=[0, 15, 45, 85, 185, 285, 385],
                  prob_scale=1.0)
    bau_default_model = DLWBusinessAsUsual()
    bau_default_model.bau_emissions_setup(t)
    c = DLWCost(t,
                bau_default_model.emit_level[0],
                g=92.08,
                a=3.413,
                join_price=joinp,
                max_price=maxp,
                tech_const=tech_chg,
                tech_scale=tech_scale,
                cons_at_0=30460.0)

    df = DLWDamage(tree=t,
                   bau=bau_default_model,
                   cons_growth=growth,
示例#7
0
文件: treedyn.py 项目: hleeldc/at
 def __init__(self, label=''):
     PureTree.__init__(self, label)
     QtCore.QObject.__init__(self)
示例#8
0
文件: treedyn.py 项目: hleeldc/at
 def splice(self):
     if PureTree.splice(self):
         self.emit(QtCore.SIGNAL("splice"), self)
         return True
     else:
         return False
示例#9
0
文件: treedyn.py 项目: hleeldc/at
 def insertRight(self,node):
     if PureTree.insertRight(self,node):
         self.emit(QtCore.SIGNAL("insertRight"), self, node)
         return True
     else:
         return False
示例#10
0
文件: treedyn.py 项目: hleeldc/at
 def attach(self,node):
     if PureTree.attach(self,node):
         self.emit(QtCore.SIGNAL("attach"), self, node)
         return True
     else:
         return False
示例#11
0
文件: treedyn.py 项目: hleeldc/at
 def removeData(self, field):
     if PureTree.removeData(self, field):
         self.emit(QtCore.SIGNAL("removeData"), self, field)
         return True
     else:
         return False
示例#12
0
文件: treedyn.py 项目: hleeldc/at
 def setData(self, field, value):
     PureTree.setData(self, field, value)
     self.emit(QtCore.SIGNAL("setData"), self, field, value)
示例#13
0
 def __init__(self):
     PureTree.__init__(self)
     QObject.__init__(self)
示例#14
0
 def splice(self):
     if PureTree.splice(self):
         self.emit(PYSIGNAL("splice"), (self, ))
         return True
     else:
         return False
示例#15
0
 def prune(self):
     if PureTree.prune(self):
         self.emit(PYSIGNAL("prune"), (self, ))
         return True
     else:
         return False
示例#16
0
 def splice(self):
     if PureTree.splice(self):
         self.emit(PYSIGNAL("splice"),(self,))
         return True
     else:
         return False
示例#17
0
 def __init__(self):
     PureTree.__init__(self)
     QObject.__init__(self)
示例#18
0
文件: treedyn.py 项目: hleeldc/at
 def prune(self):
     if PureTree.prune(self):
         self.emit(QtCore.SIGNAL("prune"), self)
         return True
     else:
         return False