From 19b33cbbe904f8f320b0e3e467057f81b79069ba Mon Sep 17 00:00:00 2001 From: Mohamed Tarek Date: Thu, 16 Nov 2023 04:04:54 +0200 Subject: [PATCH] update README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2641f2b..bbe5ada 100644 --- a/README.md +++ b/README.md @@ -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: