/Compendia/Building the LEGO® Opt App!/Connect Model to Data/Connect Model to DataUpdated: 28 March 2024· Data Sources Speed Flat Files AMPLAuthorMartin LaskowskiOptimization EngineerLEGO - This article is part of a series.Part 1: The Problem DescriptionPart 2: Plan the BuildoutPart 3: Unbox the Data!Part 4: Sketch the ModelPart 5: This ArticlePart 6: Group SETSPart 7: Add a Text-based User InterfacePart 8: Write the ModelPart 9: Shrink the ProblemPart 10: Make on-the-fly model modsPart 11: Tune the Solver!!!Part 12: Switch our glue language to PythonPart 13: Add a Streamlit User InterfacePart 14: Go Dynamic! ...with iterative solvingPart 15: Let's Containerize!Part 16: Spec (rock!) the Hardware ;)Part 17: Mistakes, lies & abandoned featuresPart 18: RECAP! ...and what happens nextWe establish a connection via an import script (written in the AMPL scripting syntax, later to be replaced by a Python script) to a collection of CSV and flat text data files.LEGO - This article is part of a series.Part 1: The Problem DescriptionPart 2: Plan the BuildoutPart 3: Unbox the Data!Part 4: Sketch the ModelPart 5: This ArticlePart 6: Group SETSPart 7: Add a Text-based User InterfacePart 8: Write the ModelPart 9: Shrink the ProblemPart 10: Make on-the-fly model modsPart 11: Tune the Solver!!!Part 12: Switch our glue language to PythonPart 13: Add a Streamlit User InterfacePart 14: Go Dynamic! ...with iterative solvingPart 15: Let's Containerize!Part 16: Spec (rock!) the Hardware ;)Part 17: Mistakes, lies & abandoned featuresPart 18: RECAP! ...and what happens next