Skip to content

๐ŸŽฏ Optimisation โ€‹

Two ways to find a good design, both by moving the sliders of a definition and solving it again:

  • Explore a design space with the Explorer components: every combination of a few sliders, one solution each, with the results, a picture and the 3D model of each design saved to a folder. The Alpaca4d Explorer opens that folder in the browser, to filter the designs on parallel axes, compare trade-offs and look at any of them in 2D and 3D.
  • Search for the best design with Non-Linear Optimisation: an algorithm moves the sliders towards the smallest or largest value of one number, such as the mass, and can keep other numbers, such as the utilisation, within limits.

They do what Colibri with Design Explorer, and DoDo's NL-Opt, did. Both ship with Alpaca4d, so there is nothing else to install.

A third works on the material itself rather than on sliders: Topology Optimisation finds which part of a block of bricks or tetrahedra a structure needs. BESO Topology finds it by carving the block down, solid or void all along, and Multi-Material Topology also chooses which of several materials goes where.

Examples to start from:

Components in this tab โ€‹

ComponentNicknameDoes
Explorer InputsExplorer InputsSteps through every combination of its sliders, value lists and panels. Press Fly.
Explorer OutputsExplorer OutputsNames the results a design is judged by.
Explorer RecordExplorer RecordSaves each design: data.csv, a picture, a 3D model.
Explorer ImageExplorer ImageWhich views to take a picture of, and how big.
Explorer SubsetExplorer SubsetRuns part of a study, to try it out or split it between machines.
Non-Linear OptimisationNL-OptMinimises or maximises a number by moving sliders, with NLopt's algorithms.
Section OptimiserSection OptimiserSizes steel beams from lists of sections, to EN 1993-1-1.
Design GroupDesign GroupBeams the Section Optimiser sizes from one list of sections.
Topology OptimisationTopologyFinds where a solid of bricks or tetrahedra needs its material.
Multi-Material TopologyMultiTopologyFinds where each of several materials goes in a solid, and where none is needed.
BESO TopologyBESOFinds where a solid needs its material by carving it down, every element solid or void.

Which one โ€‹

ExplorerNon-Linear Optimisation
AnswersWhat are the options, and what trades off against what?Which design is best by this measure?
VariablesA few, each in a few stepsAny number, each as finely as its slider allows
ResultsAs many as you like, weighed afterwardsOne objective, and constraints it must meet
Designs solvedEvery combination, onceAs many as the algorithm needs, one after another
Leaves you withA study folder to explore and shareThe sliders on the best design, and the history of the run

They work well together. A study shows where the good designs are and what matters; narrow the sliders' bounds to that region, then let the optimiser find the best design inside it.

Exploring a design space โ€‹

  1. Wire the sliders, value lists and panels that make a design into Explorer Inputs. Name them: each name becomes an axis.
  2. Wire the results that matter - mass, maximum displacement, utilisation, first period - into Explorer Outputs, and rename its inputs to name the columns, units included: Mass [t].
  3. Connect Inputs and Outputs to Explorer Record, and the AlpacaModel to its Model input to get a 3D view. Set Write to true.
  4. Press Fly on Explorer Inputs. Rhino stays usable while it runs; Fly again or Esc stops it.
  5. Open the Alpaca4d Explorer and drop the study folder on it. Right-click Explorer Record โ–ธ Open the Alpaca4d Explorer opens both.

Note

A stopped study picks up where it left off. Explorer Record never saves a design twice, and Explorer Inputs skips the designs already saved without solving them. Flying again after a stop, a crash or an extra slider step only runs what is missing.

What the explorer does with it โ€‹

  • Filter by dragging along any axis; combine as many as needed.
  • Goals: click a result's name and pick Minimise or Maximise. Pareto front then keeps the designs no other design beats on every goal at once.
  • Gallery, table, scatter of the designs that pass, sorted and coloured by any column.
  • Each design: its picture, its 3D model, every value with where it sits in its range, and arrows on each input to step to the design next door, among those that pass the filters.
  • Rate designs with stars and export the ones that pass as CSV.

A study folder on your computer is read by the browser and never uploaded. To share a study, put the folder online - a GitHub repository works - and open it by its address: the address bar then holds a link to the study, and to the design picked.

Searching for the best design โ€‹

  1. Drag from the Variables grip of Non-Linear Optimisation to the sliders the design depends on.
  2. Drag from the Objective grip to the number to minimise or maximise, such as the total mass.
  3. To keep other numbers within limits, drag from the Constraints grip to numbers that must end up at or below zero, such as utilisation - 1.
  4. Double-click the optimiser, pick an algorithm and press Start. When it ends, the sliders are on the best design it found, and one Undo puts them back.