From ec3581920dbd3a1dec8d5ad07b09c4a6b101364b Mon Sep 17 00:00:00 2001 From: Alex Wiedman Date: Wed, 1 Nov 2023 23:04:09 -0400 Subject: [PATCH] removed penalty from linking number in example --- examples/2_Intermediate/stage_two_optimization_planar_coils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/2_Intermediate/stage_two_optimization_planar_coils.py b/examples/2_Intermediate/stage_two_optimization_planar_coils.py index 956525085..8c9d62b94 100755 --- a/examples/2_Intermediate/stage_two_optimization_planar_coils.py +++ b/examples/2_Intermediate/stage_two_optimization_planar_coils.py @@ -129,7 +129,7 @@ + CS_WEIGHT * Jcsdist \ + CURVATURE_WEIGHT * sum(Jcs) \ + MSC_WEIGHT * sum(QuadraticPenalty(J, MSC_THRESHOLD) for J in Jmscs) \ - + QuadraticPenalty(linkNum, 0.1) + + linkNum # We don't have a general interface in SIMSOPT for optimisation problems that # are not in least-squares form, so we write a little wrapper function that we