Skip to content

Commit

Permalink
Add both directions of GM constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Aug 7, 2024
1 parent 2cdb38b commit 6686688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wisdem/glue_code/gc_PoseOptimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,8 @@ def set_constraints(self, wt_opt):

if float_constr["metacentric_height"]["flag"]:
wt_opt.model.add_constraint(
"floatingse.metacentric_height", lower=float_constr["metacentric_height"]["lower_bound"]
"floatingse.metacentric_height_roll", lower=float_constr["metacentric_height"]["lower_bound"]
"floatingse.metacentric_height_pitch", lower=float_constr["metacentric_height"]["lower_bound"]
)

if float_constr["freeboard_margin"]["flag"]:
Expand Down

0 comments on commit 6686688

Please sign in to comment.