Note
Go to the end to download the full example code.
Solve a 2D short cantilever topology optimization problem#
from __future__ import annotations
from gemseo import configure_logger
from gemseo import create_scenario
from gemseo.problems.topology_optimization.topopt_initialize import (
initialize_design_space_and_discipline_to,
)
configure_logger()
<RootLogger root (INFO)>
Setup the topology optimization problem#
Define the target volume fraction:
volume_fraction = 0.3
Define the problem type:
problem_name = "Short_Cantilever"
Define the number of elements in the x- and y- directions:
n_x = 50
n_y = 25
Define the full material Young's modulus and Poisson's ratio:
e0 = 1
nu = 0.3
Define the penalty of the SIMP approach:
penalty = 3
Define the minimum member size in the solution:
min_member_size = 1.5
Instantiate the DesignSpace and the disciplines:
design_space, disciplines = initialize_design_space_and_discipline_to(
problem=problem_name,
n_x=n_x,
n_y=n_y,
e0=e0,
nu=nu,
penalty=penalty,
min_member_size=min_member_size,
vf0=volume_fraction,
)
Solve the topology optimization problem#
Generate an MDOScenario:
scenario = create_scenario(
disciplines,
"compliance",
design_space,
formulation_name="DisciplinaryOpt",
)
Add the volume fraction constraint to the scenario:
scenario.add_constraint(
"volume fraction", constraint_type="ineq", value=volume_fraction
)
Generate the XDSM:
scenario.xdsmize(save_html=False, pdf_build=False)
Execute the scenario:
scenario.execute(algo_name="NLOPT_MMA", max_iter=200)
INFO - 08:38:04:
INFO - 08:38:04: *** Start MDOScenario execution ***
INFO - 08:38:04: MDOScenario
INFO - 08:38:04: Disciplines: DensityFilter FiniteElementAnalysis MaterialModelInterpolation VolumeFraction
INFO - 08:38:04: MDO formulation: DisciplinaryOpt
INFO - 08:38:04: Optimization problem:
INFO - 08:38:04: minimize compliance(x)
INFO - 08:38:04: with respect to x
INFO - 08:38:04: subject to constraints:
INFO - 08:38:04: volume fraction(x) <= 0.3
INFO - 08:38:04: Solving optimization problem with algorithm NLOPT_MMA:
INFO - 08:38:04: 1%| | 2/200 [00:00<00:08, 23.54 it/sec, obj=1.46e+3]
INFO - 08:38:05: 2%|▏ | 3/200 [00:00<00:07, 26.71 it/sec, obj=1.45e+3]
INFO - 08:38:05: 2%|▏ | 4/200 [00:00<00:06, 28.66 it/sec, obj=1.45e+3]
INFO - 08:38:05: 2%|▎ | 5/200 [00:00<00:06, 29.80 it/sec, obj=1.45e+3]
INFO - 08:38:05: 3%|▎ | 6/200 [00:00<00:06, 30.62 it/sec, obj=1.43e+3]
INFO - 08:38:05: 4%|▎ | 7/200 [00:00<00:06, 31.25 it/sec, obj=1.4e+3]
INFO - 08:38:05: 4%|▍ | 8/200 [00:00<00:06, 31.66 it/sec, obj=1.36e+3]
INFO - 08:38:05: 4%|▍ | 9/200 [00:00<00:05, 32.02 it/sec, obj=1.2e+3]
INFO - 08:38:05: 5%|▌ | 10/200 [00:00<00:05, 32.39 it/sec, obj=1.01e+3]
INFO - 08:38:05: 6%|▌ | 11/200 [00:00<00:05, 32.71 it/sec, obj=756]
INFO - 08:38:05: 6%|▌ | 12/200 [00:00<00:05, 33.02 it/sec, obj=573]
INFO - 08:38:05: 6%|▋ | 13/200 [00:00<00:05, 33.33 it/sec, obj=509]
INFO - 08:38:05: 7%|▋ | 14/200 [00:00<00:05, 33.61 it/sec, obj=448]
INFO - 08:38:05: 8%|▊ | 15/200 [00:00<00:05, 33.86 it/sec, obj=399]
INFO - 08:38:05: 8%|▊ | 16/200 [00:00<00:05, 34.05 it/sec, obj=360]
INFO - 08:38:05: 8%|▊ | 17/200 [00:00<00:05, 34.17 it/sec, obj=329]
INFO - 08:38:05: 9%|▉ | 18/200 [00:00<00:05, 34.32 it/sec, obj=304]
INFO - 08:38:05: 10%|▉ | 19/200 [00:00<00:05, 34.52 it/sec, obj=278]
INFO - 08:38:05: 10%|█ | 20/200 [00:00<00:05, 34.65 it/sec, obj=251]
INFO - 08:38:05: 10%|█ | 21/200 [00:00<00:05, 34.86 it/sec, obj=231]
INFO - 08:38:05: 11%|█ | 22/200 [00:00<00:05, 35.00 it/sec, obj=213]
INFO - 08:38:05: 12%|█▏ | 23/200 [00:00<00:05, 35.12 it/sec, obj=193]
INFO - 08:38:05: 12%|█▏ | 24/200 [00:00<00:04, 35.24 it/sec, obj=175]
INFO - 08:38:05: 12%|█▎ | 25/200 [00:00<00:04, 35.35 it/sec, obj=161]
INFO - 08:38:05: 13%|█▎ | 26/200 [00:00<00:04, 35.48 it/sec, obj=153]
INFO - 08:38:05: 14%|█▎ | 27/200 [00:00<00:04, 35.60 it/sec, obj=148]
INFO - 08:38:05: 14%|█▍ | 28/200 [00:00<00:04, 35.74 it/sec, obj=145]
INFO - 08:38:05: 14%|█▍ | 29/200 [00:00<00:04, 35.89 it/sec, obj=143]
INFO - 08:38:05: 15%|█▌ | 30/200 [00:00<00:04, 36.04 it/sec, obj=142]
INFO - 08:38:05: 16%|█▌ | 31/200 [00:00<00:04, 36.14 it/sec, obj=141]
INFO - 08:38:05: 16%|█▌ | 32/200 [00:00<00:04, 36.27 it/sec, obj=140]
INFO - 08:38:05: 16%|█▋ | 33/200 [00:00<00:04, 36.39 it/sec, obj=140]
INFO - 08:38:05: 17%|█▋ | 34/200 [00:00<00:04, 36.49 it/sec, obj=140]
INFO - 08:38:05: 18%|█▊ | 35/200 [00:00<00:04, 36.60 it/sec, obj=139]
INFO - 08:38:05: 18%|█▊ | 36/200 [00:00<00:04, 36.67 it/sec, obj=139]
INFO - 08:38:05: 18%|█▊ | 37/200 [00:01<00:04, 36.77 it/sec, obj=139]
INFO - 08:38:05: 19%|█▉ | 38/200 [00:01<00:04, 36.84 it/sec, obj=139]
INFO - 08:38:05: 20%|█▉ | 39/200 [00:01<00:04, 36.94 it/sec, obj=139]
INFO - 08:38:05: 20%|██ | 40/200 [00:01<00:04, 37.04 it/sec, obj=139]
INFO - 08:38:05: 20%|██ | 41/200 [00:01<00:04, 37.14 it/sec, obj=139]
INFO - 08:38:06: 21%|██ | 42/200 [00:01<00:04, 37.22 it/sec, obj=138]
INFO - 08:38:06: 22%|██▏ | 43/200 [00:01<00:04, 37.24 it/sec, obj=138]
INFO - 08:38:06: 22%|██▏ | 44/200 [00:01<00:04, 37.26 it/sec, obj=138]
INFO - 08:38:06: 22%|██▎ | 45/200 [00:01<00:04, 37.32 it/sec, obj=138]
INFO - 08:38:06: 23%|██▎ | 46/200 [00:01<00:04, 37.39 it/sec, obj=138]
INFO - 08:38:06: 24%|██▎ | 47/200 [00:01<00:04, 37.45 it/sec, obj=138]
INFO - 08:38:06: 24%|██▍ | 48/200 [00:01<00:04, 37.50 it/sec, obj=138]
INFO - 08:38:06: 24%|██▍ | 49/200 [00:01<00:04, 37.57 it/sec, obj=138]
INFO - 08:38:06: 25%|██▌ | 50/200 [00:01<00:03, 37.63 it/sec, obj=138]
INFO - 08:38:06: 26%|██▌ | 51/200 [00:01<00:03, 37.71 it/sec, obj=138]
INFO - 08:38:06: 26%|██▌ | 52/200 [00:01<00:03, 37.76 it/sec, obj=138]
INFO - 08:38:06: 26%|██▋ | 53/200 [00:01<00:03, 37.80 it/sec, obj=138]
INFO - 08:38:06: 27%|██▋ | 54/200 [00:01<00:03, 37.83 it/sec, obj=137]
INFO - 08:38:06: 28%|██▊ | 55/200 [00:01<00:03, 37.86 it/sec, obj=137]
INFO - 08:38:06: 28%|██▊ | 56/200 [00:01<00:03, 37.91 it/sec, obj=137]
INFO - 08:38:06: 28%|██▊ | 57/200 [00:01<00:03, 37.97 it/sec, obj=137]
INFO - 08:38:06: 29%|██▉ | 58/200 [00:01<00:03, 38.02 it/sec, obj=137]
INFO - 08:38:06: 30%|██▉ | 59/200 [00:01<00:03, 38.07 it/sec, obj=137]
INFO - 08:38:06: 30%|███ | 60/200 [00:01<00:03, 38.10 it/sec, obj=137]
INFO - 08:38:06: 30%|███ | 61/200 [00:01<00:03, 38.14 it/sec, obj=137]
INFO - 08:38:06: 31%|███ | 62/200 [00:01<00:03, 38.16 it/sec, obj=137]
INFO - 08:38:06: 32%|███▏ | 63/200 [00:01<00:03, 38.20 it/sec, obj=137]
INFO - 08:38:06: 32%|███▏ | 64/200 [00:01<00:03, 38.24 it/sec, obj=137]
INFO - 08:38:06: 32%|███▎ | 65/200 [00:01<00:03, 38.28 it/sec, obj=137]
INFO - 08:38:06: 33%|███▎ | 66/200 [00:01<00:03, 38.32 it/sec, obj=137]
INFO - 08:38:06: 34%|███▎ | 67/200 [00:01<00:03, 38.35 it/sec, obj=137]
INFO - 08:38:06: 34%|███▍ | 68/200 [00:01<00:03, 38.38 it/sec, obj=137]
INFO - 08:38:06: 34%|███▍ | 69/200 [00:01<00:03, 38.40 it/sec, obj=137]
INFO - 08:38:06: 35%|███▌ | 70/200 [00:01<00:03, 38.42 it/sec, obj=137]
INFO - 08:38:06: 36%|███▌ | 71/200 [00:01<00:03, 38.44 it/sec, obj=137]
INFO - 08:38:06: 36%|███▌ | 72/200 [00:01<00:03, 38.46 it/sec, obj=137]
INFO - 08:38:06: 36%|███▋ | 73/200 [00:01<00:03, 38.48 it/sec, obj=137]
INFO - 08:38:06: 37%|███▋ | 74/200 [00:01<00:03, 38.51 it/sec, obj=137]
INFO - 08:38:06: 38%|███▊ | 75/200 [00:01<00:03, 38.54 it/sec, obj=137]
INFO - 08:38:06: 38%|███▊ | 76/200 [00:01<00:03, 38.57 it/sec, obj=137]
INFO - 08:38:06: 38%|███▊ | 77/200 [00:01<00:03, 38.60 it/sec, obj=137]
INFO - 08:38:06: 39%|███▉ | 78/200 [00:02<00:03, 38.63 it/sec, obj=137]
INFO - 08:38:06: 40%|███▉ | 79/200 [00:02<00:03, 38.65 it/sec, obj=137]
INFO - 08:38:06: 40%|████ | 80/200 [00:02<00:03, 38.68 it/sec, obj=137]
INFO - 08:38:06: 40%|████ | 81/200 [00:02<00:03, 38.71 it/sec, obj=137]
INFO - 08:38:07: 41%|████ | 82/200 [00:02<00:03, 38.74 it/sec, obj=137]
INFO - 08:38:07: 42%|████▏ | 83/200 [00:02<00:03, 38.77 it/sec, obj=137]
INFO - 08:38:07: 42%|████▏ | 84/200 [00:02<00:02, 38.79 it/sec, obj=137]
INFO - 08:38:07: 42%|████▎ | 85/200 [00:02<00:02, 38.79 it/sec, obj=137]
INFO - 08:38:07: 43%|████▎ | 86/200 [00:02<00:02, 38.78 it/sec, obj=137]
INFO - 08:38:07: 44%|████▎ | 87/200 [00:02<00:02, 38.77 it/sec, obj=137]
INFO - 08:38:07: 44%|████▍ | 88/200 [00:02<00:02, 38.79 it/sec, obj=137]
INFO - 08:38:07: 44%|████▍ | 89/200 [00:02<00:02, 38.81 it/sec, obj=137]
INFO - 08:38:07: 45%|████▌ | 90/200 [00:02<00:02, 38.84 it/sec, obj=137]
INFO - 08:38:07: 46%|████▌ | 91/200 [00:02<00:02, 38.86 it/sec, obj=137]
INFO - 08:38:07: 46%|████▌ | 92/200 [00:02<00:02, 38.89 it/sec, obj=137]
INFO - 08:38:07: 46%|████▋ | 93/200 [00:02<00:02, 38.92 it/sec, obj=137]
INFO - 08:38:07: 47%|████▋ | 94/200 [00:02<00:02, 38.93 it/sec, obj=137]
INFO - 08:38:07: 48%|████▊ | 95/200 [00:02<00:02, 38.96 it/sec, obj=137]
INFO - 08:38:07: 48%|████▊ | 96/200 [00:02<00:02, 38.98 it/sec, obj=137]
INFO - 08:38:07: 48%|████▊ | 97/200 [00:02<00:02, 39.02 it/sec, obj=137]
INFO - 08:38:07: 49%|████▉ | 98/200 [00:02<00:02, 39.04 it/sec, obj=137]
INFO - 08:38:07: 50%|████▉ | 99/200 [00:02<00:02, 39.06 it/sec, obj=137]
INFO - 08:38:07: 50%|█████ | 100/200 [00:02<00:02, 39.08 it/sec, obj=137]
INFO - 08:38:07: 50%|█████ | 101/200 [00:02<00:02, 39.10 it/sec, obj=137]
INFO - 08:38:07: 51%|█████ | 102/200 [00:02<00:02, 39.12 it/sec, obj=137]
INFO - 08:38:07: 52%|█████▏ | 103/200 [00:02<00:02, 39.15 it/sec, obj=137]
INFO - 08:38:07: 52%|█████▏ | 104/200 [00:02<00:02, 39.17 it/sec, obj=137]
INFO - 08:38:07: 52%|█████▎ | 105/200 [00:02<00:02, 39.19 it/sec, obj=137]
INFO - 08:38:07: 53%|█████▎ | 106/200 [00:02<00:02, 39.20 it/sec, obj=137]
INFO - 08:38:07: 54%|█████▎ | 107/200 [00:02<00:02, 39.22 it/sec, obj=137]
INFO - 08:38:07: 54%|█████▍ | 108/200 [00:02<00:02, 39.24 it/sec, obj=137]
INFO - 08:38:07: 55%|█████▍ | 109/200 [00:02<00:02, 39.26 it/sec, obj=137]
INFO - 08:38:07: 55%|█████▌ | 110/200 [00:02<00:02, 39.27 it/sec, obj=137]
INFO - 08:38:07: 56%|█████▌ | 111/200 [00:02<00:02, 39.30 it/sec, obj=137]
INFO - 08:38:07: 56%|█████▌ | 112/200 [00:02<00:02, 39.33 it/sec, obj=137]
INFO - 08:38:07: 56%|█████▋ | 113/200 [00:02<00:02, 39.35 it/sec, obj=137]
INFO - 08:38:07: 57%|█████▋ | 114/200 [00:02<00:02, 39.37 it/sec, obj=137]
INFO - 08:38:07: 57%|█████▊ | 115/200 [00:02<00:02, 39.39 it/sec, obj=137]
INFO - 08:38:07: 58%|█████▊ | 116/200 [00:02<00:02, 39.40 it/sec, obj=137]
INFO - 08:38:07: 58%|█████▊ | 117/200 [00:02<00:02, 39.40 it/sec, obj=137]
INFO - 08:38:07: 59%|█████▉ | 118/200 [00:02<00:02, 39.41 it/sec, obj=137]
INFO - 08:38:07: 60%|█████▉ | 119/200 [00:03<00:02, 39.43 it/sec, obj=137]
INFO - 08:38:07: 60%|██████ | 120/200 [00:03<00:02, 39.43 it/sec, obj=137]
INFO - 08:38:07: 60%|██████ | 121/200 [00:03<00:02, 39.45 it/sec, obj=137]
INFO - 08:38:07: 61%|██████ | 122/200 [00:03<00:01, 39.46 it/sec, obj=137]
INFO - 08:38:08: 62%|██████▏ | 123/200 [00:03<00:01, 39.47 it/sec, obj=137]
INFO - 08:38:08: 62%|██████▏ | 124/200 [00:03<00:01, 39.48 it/sec, obj=137]
INFO - 08:38:08: 62%|██████▎ | 125/200 [00:03<00:01, 39.49 it/sec, obj=137]
INFO - 08:38:08: 63%|██████▎ | 126/200 [00:03<00:01, 39.51 it/sec, obj=137]
INFO - 08:38:08: 64%|██████▎ | 127/200 [00:03<00:01, 39.53 it/sec, obj=137]
INFO - 08:38:08: 64%|██████▍ | 128/200 [00:03<00:01, 39.54 it/sec, obj=137]
INFO - 08:38:08: 64%|██████▍ | 129/200 [00:03<00:01, 39.57 it/sec, obj=137]
INFO - 08:38:08: 65%|██████▌ | 130/200 [00:03<00:01, 39.58 it/sec, obj=137]
INFO - 08:38:08: 66%|██████▌ | 131/200 [00:03<00:01, 39.60 it/sec, obj=137]
INFO - 08:38:08: 66%|██████▌ | 132/200 [00:03<00:01, 39.61 it/sec, obj=137]
INFO - 08:38:08: 66%|██████▋ | 133/200 [00:03<00:01, 39.63 it/sec, obj=137]
INFO - 08:38:08: 67%|██████▋ | 134/200 [00:03<00:01, 39.61 it/sec, obj=137]
INFO - 08:38:08: 68%|██████▊ | 135/200 [00:03<00:01, 39.60 it/sec, obj=137]
INFO - 08:38:08: 68%|██████▊ | 136/200 [00:03<00:01, 39.61 it/sec, obj=137]
INFO - 08:38:08: 68%|██████▊ | 137/200 [00:03<00:01, 39.61 it/sec, obj=137]
INFO - 08:38:08: 69%|██████▉ | 138/200 [00:03<00:01, 39.62 it/sec, obj=137]
INFO - 08:38:08: 70%|██████▉ | 139/200 [00:03<00:01, 39.63 it/sec, obj=137]
INFO - 08:38:08: 70%|███████ | 140/200 [00:03<00:01, 39.64 it/sec, obj=137]
INFO - 08:38:08: 70%|███████ | 141/200 [00:03<00:01, 39.65 it/sec, obj=137]
INFO - 08:38:08: 71%|███████ | 142/200 [00:03<00:01, 39.65 it/sec, obj=137]
INFO - 08:38:08: 72%|███████▏ | 143/200 [00:03<00:01, 39.66 it/sec, obj=137]
INFO - 08:38:08: 72%|███████▏ | 144/200 [00:03<00:01, 39.67 it/sec, obj=137]
INFO - 08:38:08: 72%|███████▎ | 145/200 [00:03<00:01, 39.69 it/sec, obj=137]
INFO - 08:38:08: 73%|███████▎ | 146/200 [00:03<00:01, 39.72 it/sec, obj=137]
INFO - 08:38:08: 74%|███████▎ | 147/200 [00:03<00:01, 39.73 it/sec, obj=137]
INFO - 08:38:08: 74%|███████▍ | 148/200 [00:03<00:01, 39.74 it/sec, obj=137]
INFO - 08:38:08: 74%|███████▍ | 149/200 [00:03<00:01, 39.75 it/sec, obj=137]
INFO - 08:38:08: 75%|███████▌ | 150/200 [00:03<00:01, 39.75 it/sec, obj=137]
INFO - 08:38:08: 76%|███████▌ | 151/200 [00:03<00:01, 39.75 it/sec, obj=137]
INFO - 08:38:08: 76%|███████▌ | 152/200 [00:03<00:01, 39.76 it/sec, obj=137]
INFO - 08:38:08: 76%|███████▋ | 153/200 [00:03<00:01, 39.76 it/sec, obj=137]
INFO - 08:38:08: 77%|███████▋ | 154/200 [00:03<00:01, 39.76 it/sec, obj=137]
INFO - 08:38:08: 78%|███████▊ | 155/200 [00:03<00:01, 39.76 it/sec, obj=137]
INFO - 08:38:08: 78%|███████▊ | 156/200 [00:03<00:01, 39.77 it/sec, obj=137]
INFO - 08:38:08: 78%|███████▊ | 157/200 [00:03<00:01, 39.78 it/sec, obj=137]
INFO - 08:38:08: 79%|███████▉ | 158/200 [00:03<00:01, 39.78 it/sec, obj=137]
INFO - 08:38:08: 80%|███████▉ | 159/200 [00:03<00:01, 39.80 it/sec, obj=137]
INFO - 08:38:08: 80%|████████ | 160/200 [00:04<00:01, 39.82 it/sec, obj=137]
INFO - 08:38:08: 80%|████████ | 161/200 [00:04<00:00, 39.84 it/sec, obj=137]
INFO - 08:38:08: 81%|████████ | 162/200 [00:04<00:00, 39.86 it/sec, obj=137]
INFO - 08:38:08: 82%|████████▏ | 163/200 [00:04<00:00, 39.87 it/sec, obj=137]
INFO - 08:38:09: 82%|████████▏ | 164/200 [00:04<00:00, 39.90 it/sec, obj=137]
INFO - 08:38:09: 82%|████████▎ | 165/200 [00:04<00:00, 39.90 it/sec, obj=137]
INFO - 08:38:09: 83%|████████▎ | 166/200 [00:04<00:00, 39.91 it/sec, obj=137]
INFO - 08:38:09: 84%|████████▎ | 167/200 [00:04<00:00, 39.91 it/sec, obj=137]
INFO - 08:38:09: 84%|████████▍ | 168/200 [00:04<00:00, 39.92 it/sec, obj=137]
INFO - 08:38:09: 84%|████████▍ | 169/200 [00:04<00:00, 39.92 it/sec, obj=137]
INFO - 08:38:09: 85%|████████▌ | 170/200 [00:04<00:00, 39.92 it/sec, obj=137]
INFO - 08:38:09: 86%|████████▌ | 171/200 [00:04<00:00, 39.94 it/sec, obj=137]
INFO - 08:38:09: 86%|████████▌ | 172/200 [00:04<00:00, 39.96 it/sec, obj=137]
INFO - 08:38:09: 86%|████████▋ | 173/200 [00:04<00:00, 39.98 it/sec, obj=137]
INFO - 08:38:09: 87%|████████▋ | 174/200 [00:04<00:00, 39.99 it/sec, obj=137]
INFO - 08:38:09: 88%|████████▊ | 175/200 [00:04<00:00, 39.99 it/sec, obj=137]
INFO - 08:38:09: 88%|████████▊ | 176/200 [00:04<00:00, 40.00 it/sec, obj=137]
INFO - 08:38:09: 88%|████████▊ | 177/200 [00:04<00:00, 40.00 it/sec, obj=137]
INFO - 08:38:09: 89%|████████▉ | 178/200 [00:04<00:00, 40.01 it/sec, obj=137]
INFO - 08:38:09: 90%|████████▉ | 179/200 [00:04<00:00, 40.02 it/sec, obj=137]
INFO - 08:38:09: 90%|█████████ | 180/200 [00:04<00:00, 40.03 it/sec, obj=137]
INFO - 08:38:09: 90%|█████████ | 181/200 [00:04<00:00, 40.03 it/sec, obj=137]
INFO - 08:38:09: 91%|█████████ | 182/200 [00:04<00:00, 40.04 it/sec, obj=137]
INFO - 08:38:09: 92%|█████████▏| 183/200 [00:04<00:00, 40.05 it/sec, obj=137]
INFO - 08:38:09: 92%|█████████▏| 184/200 [00:04<00:00, 40.07 it/sec, obj=137]
INFO - 08:38:09: 92%|█████████▎| 185/200 [00:04<00:00, 40.08 it/sec, obj=137]
INFO - 08:38:09: 93%|█████████▎| 186/200 [00:04<00:00, 40.10 it/sec, obj=137]
INFO - 08:38:09: 94%|█████████▎| 187/200 [00:04<00:00, 40.11 it/sec, obj=137]
INFO - 08:38:09: 94%|█████████▍| 188/200 [00:04<00:00, 40.11 it/sec, obj=137]
INFO - 08:38:09: 94%|█████████▍| 189/200 [00:04<00:00, 40.12 it/sec, obj=137]
INFO - 08:38:09: 95%|█████████▌| 190/200 [00:04<00:00, 40.13 it/sec, obj=137]
INFO - 08:38:09: 96%|█████████▌| 191/200 [00:04<00:00, 40.12 it/sec, obj=137]
INFO - 08:38:09: 96%|█████████▌| 192/200 [00:04<00:00, 40.12 it/sec, obj=137]
INFO - 08:38:09: 96%|█████████▋| 193/200 [00:04<00:00, 40.13 it/sec, obj=137]
INFO - 08:38:09: 97%|█████████▋| 194/200 [00:04<00:00, 40.13 it/sec, obj=137]
INFO - 08:38:09: 98%|█████████▊| 195/200 [00:04<00:00, 40.14 it/sec, obj=137]
INFO - 08:38:09: 98%|█████████▊| 196/200 [00:04<00:00, 40.14 it/sec, obj=137]
INFO - 08:38:09: 98%|█████████▊| 197/200 [00:04<00:00, 40.15 it/sec, obj=137]
INFO - 08:38:09: 99%|█████████▉| 198/200 [00:04<00:00, 40.15 it/sec, obj=137]
INFO - 08:38:09: 100%|█████████▉| 199/200 [00:04<00:00, 40.16 it/sec, obj=137]
INFO - 08:38:09: 100%|██████████| 200/200 [00:04<00:00, 40.31 it/sec, obj=137]
INFO - 08:38:09: Optimization result:
INFO - 08:38:09: Optimizer info:
INFO - 08:38:09: Status: None
INFO - 08:38:09: Message: Maximum number of iterations reached. GEMSEO stopped the driver.
INFO - 08:38:09: Number of calls to the objective function by the optimizer: 201
INFO - 08:38:09: Solution:
INFO - 08:38:09: The solution is feasible.
INFO - 08:38:09: Objective: 136.56123312100124
INFO - 08:38:09: Standardized constraints:
INFO - 08:38:09: [volume fraction-0.3] = -1.9140380946858215e-09
INFO - 08:38:09: *** End MDOScenario execution (time: 0:00:04.967445) ***
Results#
Post-process the optimization history:
scenario.post_process(
post_name="BasicHistory", variable_names=["compliance"], show=True, save=False
)

/home/docs/checkouts/readthedocs.org/user_builds/gemseo/envs/6.0.0/lib/python3.9/site-packages/gemseo/datasets/dataset.py:482: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
self[columns] = value
<gemseo.post.basic_history.BasicHistory object at 0x7f6dc12bbbe0>
Plot the solution
scenario.post_process(post_name="TopologyView", n_x=n_x, n_y=n_y, show=True, save=False)

<gemseo.post.topology_view.TopologyView object at 0x7f6dc0712d00>
Total running time of the script: (0 minutes 5.815 seconds)