Skip to content

Commit

Permalink
Merge branch 'develop' into feature-wake_cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rachealerhard committed Jul 16, 2022
2 parents 172c779 + c7d32dd commit f62db7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/SUAVE/Optimization/Package_Setups/scipy_setup.py
Expand Up @@ -23,7 +23,7 @@
# ----------------------------------------------------------------------

## @ingroup Optimization-Package_Setups
def SciPy_Solve(problem,solver='SLSQP', sense_step = 1.4901161193847656e-08, tolerance = 1e-6, pop_size = 10 , prob_seed = None ):
def SciPy_Solve(problem,solver='SLSQP', sense_step = 1.4901161193847656e-08, iter =200, tolerance = 1e-6, pop_size = 10 , prob_seed = None ):
""" This converts your SUAVE Nexus problem into a SciPy optimization problem and solves it
SciPy has many algorithms, they can be switched out by using the solver input.
Expand Down Expand Up @@ -75,7 +75,7 @@ def SciPy_Solve(problem,solver='SLSQP', sense_step = 1.4901161193847656e-08, tol
# Finalize problem statement and run
if solver=='SLSQP':
outputs = sp.optimize.fmin_slsqp(wrapper,x,f_eqcons=problem.equality_constraint,f_ieqcons=problem.inequality_constraint,bounds=bnds,\
iter=200, epsilon = sense_step, acc = tolerance)
iter=iter, epsilon = sense_step, acc = tolerance)
elif solver == 'differential_evolution':
# Define constraints as a tuple of nonlinear constraints
scaled_constraints = []
Expand Down

0 comments on commit f62db7a

Please sign in to comment.