Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed82008 committed Nov 16, 2023
1 parent d2550c0 commit 19b33cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ comp = TopOpt.Compliance(problem, solver) # compliance function
The usual topology optimization problem adresses compliance minimization under volume restriction. Therefore, the objective and the constraint are:

```julia
obj(x) = comp(cheqfilter(x)) # compliance objective
constr(x) = sum(cheqfilter(x)) / length(x) - V # volume fraction constraint
obj(x) = comp(cheqfilter(PseudoDensities(x))) # compliance objective
constr(x) = sum(cheqfilter(PseudoDensities(x))) / length(x) - V # volume fraction constraint
```

Finally, the optimization problem is defined and solved:
Expand Down

0 comments on commit 19b33cb

Please sign in to comment.