Organize the output of a mathematical model

Hi there!

Since this is your first post, you might want to start by reading: Please read: make it easier to help you

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:

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:

1 Like