Gym basics#
TODO: in this section, discuss some of the basic objects in the gym ecosystem.
From the invrs_gym package:
Component: represents the physical component to be optimized. Hasinitandresponsemethods. For some components, theresponsemethod has optional arguments that enable calculation of fields or other quantities for visualization purposes.Challenge: represents the challenge. Has aComponentas an attribute, alossfunction, aneval_metricfunction which scores a solution (higher is better), andmetricswhich returns additional relevant quantities.
From the totypes package:
Density2DArray: array with metadata, used to parameterized layers that can be patterned. Includes metadata that can communicate desired minimum length scales to an optimizer.BoundedArray: array with optional upper and lower bounds, used to parameterize thicknesses.