Skip to content

Commit

Permalink
enh: penalty True implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelpsilva07 committed May 30, 2024
1 parent bca1778 commit e15ab84
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 5 deletions.
3 changes: 2 additions & 1 deletion composipy/optimize/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def plot_optimization(a, b, T, m, n, E1, E2, v12,
g1_xi3 = -2*g1_xi1 - 1
g2_xi3 = 2*g2_xi1 - 1
else:
g1_xi3 = -2*g1_xi1**2 - 1
print('penalty False')
g1_xi3 = 2*g1_xi1**2 - 1
g2_xi3 = 2*g2_xi1**2 - 1


Expand Down
63 changes: 59 additions & 4 deletions doc/notebooks/Code_snipets.ipynb

Large diffs are not rendered by default.

0 comments on commit e15ab84

Please sign in to comment.