<gh_stars>1-10
import time

from openmdao.lib.casehandlers.api import CSVCaseRecorder, DBCaseRecorder
from CADRE import CADRE_Optimization

print "setting up"
top = CADRE_Optimization(n=1500, m=300)
#top.recorders = [CSVCaseRecorder(filename='CADRE.csv')]

top.recorders = [DBCaseRecorder(dbfile='CADRE.db', append=False)]
printvars = ['pt0.t']
for var in ['Data', 'ConCh', 'ConDs', 'ConS0', 'ConS1', 'SOC', 'Comm_BitRate.gain', 'LOS', "CommLOS", "Gamma", "P_comm"]:
   printvars += ["pt%d.%s"%(i,var) for i in xrange(6)]

top.printvars = printvars
print "running"

start_time = time.time()

top.run()

print "Finished"
print "Run Time: ", time.time() - start_time
import time

from openmdao.lib.casehandlers.api import CSVCaseRecorder, DBCaseRecorder
from CADRE import CADRE_Optimization

print "setting up"
top = CADRE_Optimization(n=1500, m=300)
#top.recorders = [CSVCaseRecorder(filename='CADRE.csv')]

top.recorders = [DBCaseRecorder(dbfile='CADRE.db', append=False)]
printvars = ['pt0.t']
for var in ['Data', 'ConCh', 'ConDs', 'ConS0', 'ConS1', 'SOC', 'Comm_BitRate.gain', 'LOS', "CommLOS", "Gamma", "P_comm"]:
   printvars += ["pt%d.%s"%(i,var) for i in xrange(6)]

top.printvars = printvars
print "running"

start_time = time.time()

top.run()

print "Finished"
print "Run Time: ", time.time() - start_time
#top.recorders = [CSVCaseRecorder(filename='CADRE.csv')]