# Organize the output of a mathematical model

**URL:** https://discourse.julialang.org/t/organize-the-output-of-a-mathematical-model/78378
**Category:** Optimization (Mathematical)
**Tags:** dataframes, tables
**Created:** [March 24, 2022, 10:18am UTC](https://discourse.julialang.org/t/organize-the-output-of-a-mathematical-model/78378 "2022-03-24T10:18:49Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [March 24, 2022, 5:53pm UTC](https://discourse.julialang.org/t/organize-the-output-of-a-mathematical-model/78378/2 "2022-03-24T17:53:44Z")

</div>

Hi there!

Since this is your first post, you might want to start by reading: [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

At the moment this is a little too generic of a question.

If you can post a small reproducible example with the (simplified) code of what you currently have, then people should be able to help, but this might be a good starting point:

```nohighlight
using DataFrames
client, plant, product, amount = [], [], [], []
for j in 1:J
    for i in 1:I
        for k in 1:K
            push!(client, i)
            push!(plant, j)
            push!(product, k)
            push!(amount, q[j, i, k]
        end
    end
end
DataFrame(
    client = client,
    plant = plant,
    product = product,
    amount = amount,
)

```

Here are some other links:

- [Getting started with data and plotting · JuMP](https://jump.dev/JuMP.jl/stable/tutorials/getting_started/getting_started_with_data_and_plotting/)
- [Introduction · DataFrames.jl](https://dataframes.juliadata.org/stable/)

---

_[View the full topic](https://discourse.julialang.org/t/organize-the-output-of-a-mathematical-model/78378)._
