Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example doesn't work #1

Open
w3ricardo opened this issue Dec 31, 2022 · 1 comment
Open

example doesn't work #1

w3ricardo opened this issue Dec 31, 2022 · 1 comment

Comments

@w3ricardo
Copy link

When I run the example I get the following message:

-12
NetworkSimplex: ../network_simplex_solver.cpp:318: static void NetworkSimplexSolver::SanityCheck(NetworkSimplexSolver::pint_t, const std::vectorNetworkSimplexSolver::Arc&): Assertion `arcs[i].ed >= 0 && arcs[i].ed < n' failed.

@splintersu
Copy link
Owner

it's intended behavior.

the solver outputs the solution at line 15.

and after insert an invalid arc at line 17, the solver failed and triggered this assert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants