Skip to content

Commit 14127a3

Browse files
committed
coarse plot
1 parent 64494c6 commit 14127a3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Regional_Jet_Optimization/Optimize.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ def main():
2727
problem = setup()
2828

2929
## Base Input Values
30-
#output = problem.objective()
30+
output = problem.objective()
3131

3232
## Uncomment to view contours of the design space
33-
variable_sweep(problem)
33+
#variable_sweep(problem)
3434

3535
# Uncomment for the first optimization
36-
#output = scipy_setup.SciPy_Solve(problem,solver='SLSQP')
37-
#print (output)
36+
output = scipy_setup.SciPy_Solve(problem,solver='SLSQP')
37+
print (output)
3838

39-
#print('fuel burn = ', problem.summary.base_mission_fuelburn)
40-
#print('fuel margin = ', problem.all_constraints())
39+
print('fuel burn = ', problem.summary.base_mission_fuelburn)
40+
print('fuel margin = ', problem.all_constraints())
4141

42-
#Plot_Mission.plot_mission(problem)
42+
Plot_Mission.plot_mission(problem)
4343

4444
return
4545

@@ -123,7 +123,7 @@ def setup():
123123
return nexus
124124

125125
def variable_sweep(problem):
126-
number_of_points = 20
126+
number_of_points = 5
127127
outputs = carpet_plot(problem, number_of_points, 0, 0) #run carpet plot, suppressing default plots
128128
inputs = outputs.inputs
129129
objective = outputs.objective

0 commit comments

Comments
 (0)