algorithmic modeling for Rhino
Algorithm to capture data produced during the optimization process using Grasshopper + Galapagos.
Although very powerful, the images produced during the Galapagos optimization process are lost and the generated data is stored in a way that makes its analysis difficult and laborious. Thinking about this, this algorithm was developed so that the most important information of this process is preserved.
This feature works by capturing Rhino viewports as PNG image files. It saves these images to a folder with the same name as the GH file and in the same directory where it is. It also captures the data used as 'genomes' and 'fitness' during the Galapagos optimization process in a CSV file, assigning it name and location in the same way as described for the images.
Toggle: Activates the component using a boolean;
goalValue: receives the goal value;
width: width of the screen to be captured;
height: height of the screen to be captured;
data: list of data.
Example of application and download link of the code below: