Skip to content

Commit

Permalink
Reducing verbosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
1ozturkbe committed Jun 21, 2019
1 parent 1fe18a8 commit 4044209
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions gpkitmodels/SP/SimPleAC/SimPleAC_mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,10 @@ def setup(self,aircraft,Nsegments):
self.aircraft.fuse['W_{fuse}'] == self.aircraft.fuse['S_{fuse}']*self.aircraft.wing['W_{w_{coeff2}}'],
]

# Upper bounding variables
# Bounding variables
constraints += [t_m <= 100000*units('hr'),
W_f_m <= 1e10*units('N')]
W_f_m <= 1e10*units('N'),
cost_index >= 1*units('1/hr')]

return constraints, state, self.aircraft, self.aircraftP

Expand All @@ -316,7 +317,7 @@ def test():
'T/O factor_m' :2,
})
m.cost = m['W_{f_m}']*units('1/N') + m['C_m']*m['t_m']
sol = m.localsolve(verbosity = 2)
sol = m.localsolve(verbosity = 0)


if __name__ == "__main__":
Expand All @@ -332,5 +333,5 @@ def test():
'T/O factor_m' :2,
})
m.cost = m['W_{f_m}']*units('1/N') + m['C_m']*m['t_m']
sol = m.localsolve(verbosity = 4)
sol = m.localsolve(verbosity = 2)
#print sol.table()
2 changes: 1 addition & 1 deletion gpkitmodels/SP/SimPleAC/SimPleAC_multimission.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test():
})

m.cost = (m.missions[0]['W_{f_m}']*units('1/N') + m.missions[1]['C_m']*m.missions[1]['t_m'])
sol = m.localsolve(verbosity = 2)
sol = m.localsolve(verbosity = 0)

if __name__ == "__main__":
Nmissions = 2
Expand Down

0 comments on commit 4044209

Please sign in to comment.