Open alichtl opened 3 years ago
Can Julia code that you are using to call mincost_flow
?
From the error it looks like to call the function somehow like this:
mincost_flow(g, node_demand, edge_capacity, edge_cost, optimizer, 1, 2)
when you should probably call
mincost_flow(g, node_demand, edge_capacity, edge_cost, optimizer; source_nodes=[1], sink_nodes=[2])
I also saw that the documentation that you are using (and that is linked to in serveral places) is three years old - here are now updated docs for the latest stable version: https://juliagraphs.org/LightGraphsFlows.jl/stable/
perfect, should this be closed @adamlichtl ?
This is super helpful- thank you! It's working now, and thanks also for directing me to the stable
version of the docs. It's ok to close this, but for the benefit of others, I'd recommend removing (or at least renaming to something other than latest
), the stale documentation at https://juliagraphs.org/LightGraphsFlows.jl/latest/, since that is one of the top hits returned when searching online.
this is weird, latest is supposed to be on par with master
The problem was before, the documentation folder was called latest
but was never updated. With the new ci scripts, we will have a folder stable
and a folder dev
. So we still need to update this on juliagraphs.org and remove the lastest folder.
For now I am trying to create a symlink from latest
to stable
but have not been successful so far.
We can just delete latest?
Yes, maybe there is no other option - maybe github cannot deal with symlinks to symlinks or so. We should just update juliagraphs.org then, and juliahub will also contain the incorrect link until we release a new version
Attempting to run the example code at https://juliagraphs.org/LightGraphsFlows.jl/latest/mincost.html give the following error:
Replacing
ClpSolver
withOptimizer
, then gives this error:Versions: