Read a csv tabular data to use in a p median model

Can u help me to to print an objective function?

@objective(m, Min, sum(custo[j,i]*x[i,j] for i in destino, j in origem))

Could you give some more details? The title of the thread doesn’t seem to have anything to do with your question.

Are you using JuMP? Here’s the section of the docs describing how to query an objective function:

1 Like

If your question is really about the Read a CSV part, then there are various tutorials in the JuMP documentation that will help: