Skip to content

Commit 4f191cf

Browse files
duplicated summary print for SLSQP
1 parent acca0d3 commit 4f191cf

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/compas_tno/problems/setup.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from compas_tno.problems import startingpoint_tna
2525
from compas_tno.utilities import compute_edge_stiffness
2626
from compas_tno.utilities import compute_form_initial_lengths
27-
from compas_tno.utilities import set_b_constraint
2827

2928
if TYPE_CHECKING:
3029
from compas_tno.analysis import Analysis
@@ -359,13 +358,6 @@ def set_up_general_optimisation(analysis: "Analysis"):
359358
form.vertex_attribute(key, "y", problem.X[i, 1])
360359
form.vertex_attribute(key, "z", problem.X[i, 2])
361360

362-
if plot:
363-
from compas_tno.viewer import TNOViewer
364-
365-
view = TNOViewer(form)
366-
view.draw_thrust()
367-
view.show()
368-
369361
if printout:
370362
print("-" * 20)
371363
print("TNO v.2.0")

src/compas_tno/solvers/scipy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run_nlopt_scipy(analysis: "Analysis") -> "Analysis":
5858
niter: int
5959
message: str
6060
fopt, xopt, exitflag, niter, message = _slsqp(fobj, x0, bounds, slsqp_grad_flatten(fgrad) if fgrad else None, fjac, printout, fconstr, args, max_iter, callback)
61-
61+
6262
elapsed_time: float = time.time() - start_time
6363
if printout:
6464
print("Solving Time: {0:.1f} sec".format(elapsed_time))
@@ -71,8 +71,6 @@ def run_nlopt_scipy(analysis: "Analysis") -> "Analysis":
7171
optimiser.niter = niter
7272
optimiser.message = message
7373

74-
post_process_general(analysis)
75-
7674
return analysis
7775

7876

0 commit comments

Comments
 (0)