Skip to content

Commit

Permalink
Fix afg2lp
Browse files Browse the repository at this point in the history
  • Loading branch information
fdabrandao committed Nov 1, 2022
1 parent 3363fc9 commit f39075b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/afg2lp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ int swig_main(int argc, char **argv) {

printf("Generating the .LP model...");

map<int, vector<int>> Ai;
map<int, vector<int>> in;
map<int, vector<int>> out;
std::map<int, std::vector<int>> Ai;
std::map<int, std::vector<int>> in;
std::map<int, std::vector<int>> out;

/* objective */

fprintf(fout, "Minimize");
vector<int> ub(afg.NA);
std::vector<int> ub(afg.NA);
for (int i = 0; i < afg.NA; i++) {
const Arc &a = afg.A[i];
Ai[a.label].push_back(i);
Expand Down

0 comments on commit f39075b

Please sign in to comment.