Model Library

Getting Started

Each workspace is prepopulated with the models that you have access to in our model library. You can browse, modify, copy/paste, and duplicate to your heart's content. While modifying a model will not modify the model code on Optilogic's servers, it will edit the base copy that you have in your workspace, so it is recommended that you copy/duplicate the model first, then make your changes.

Model Contents

Each model in the library comes with 3 components:

  1. Coversheet
  2. Code File(s)
  3. Data File(s)

We will go through each of these in more detail below.

Coversheet

Every model comes with a PDF coversheet that provides valuable details about the model. Each one will have a description of the problem needing to be solved as well as a succinctly stated objective. Next you will see the mathematical formulation, complete with formulas representing the objective and constraints. Each of these formulas will also come with a description detailing what they mean. Lastly, you will see a breakdown of the model code and data file that will help provide context for how the model was built.

Code File(s)

Most models come with a single code file (a python .py file), but occasionally more files can be provided. This file will have the Pyomo implementation of the model. You will see the data declarations, variables, objective, and constraints, as well as a section at the end that prints out some meaningful solution data that is easily readable. You can easily add or remove constraints, modify data connections and the objective function. You have full control over what the model does.

Data File(s)

As with the code files, each model will typically come with a single .dat file. As models get more complex we will sometimes provide data to the model as separate tab-separated text files. This can make it easier to deal with table data as each file will represent one table of data. Regardless of the format, if you match your data to the format you see in the data files, then you can immediately make the model work for you and your business needs.

Adding to the Model Library

While Optilogic has many models already in the library, with new models being constantly developed, you may find that you have more specific needs that aren't met out of the box by one of our provided models. While you are free to take any model in the library as a starting point, you can also reach out to us with specific needs and we can leverage our Applied Research team of OR experts to work with you to build out the model that you need. If you would like to do this, please reach out to us at Optilogic Support.