We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b9caad commit f03cc66Copy full SHA for f03cc66
examples/fun3d_examples/_ssw-testing/4_oml_shape.py
@@ -314,14 +314,21 @@
314
manager.register_to_problem(opt_problem)
315
316
# run an SNOPT optimization
317
-sol = snoptimizer = SNOPT(
+snoptimizer = SNOPT(
318
options={
319
"Verify level": 0,
320
"Function precision": 1e-4,
321
"Major Optimality tol": 1e-4,
322
}
323
)
324
325
+sol = snoptimizer(
326
+ opt_problem,
327
+ sens=manager.eval_gradients,
328
+ storeHistory=store_history_file,
329
+ hotStart=hot_start_file,
330
+)
331
+
332
# print final solution
333
sol_xdict = sol.xStar
334
print(f"Final solution = {sol_xdict}", flush=True)
0 commit comments