diff options
author | aje <leo_g_autheron@hotmail.fr> | 2017-08-29 15:38:11 +0200 |
---|---|---|
committer | aje <leo_g_autheron@hotmail.fr> | 2017-08-29 15:38:11 +0200 |
commit | 3cecc18f53453e79ccc00484e6cbfaa5643f269c (patch) | |
tree | 1d9879cb0ed12d280b14121ccad90946682465f1 /ot/lp/EMD.h | |
parent | a2ec6e55e458c719484e86a4e6a6e764c2e38dc8 (diff) |
Changes to LP solver:
- Allow to modify the maximal number of iterations
- Display an error message in the python console if the solver encountered an issue
Diffstat (limited to 'ot/lp/EMD.h')
-rw-r--r-- | ot/lp/EMD.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ot/lp/EMD.h b/ot/lp/EMD.h index 40d7192..956830c 100644 --- a/ot/lp/EMD.h +++ b/ot/lp/EMD.h @@ -23,7 +23,12 @@ using namespace lemon; typedef unsigned int node_id_type; +enum ProblemType { + INFEASIBLE, + OPTIMAL, + UNBOUNDED +}; -void EMD_wrap(int n1,int n2, double *X, double *Y,double *D, double *G, double *cost); +int EMD_wrap(int n1,int n2, double *X, double *Y,double *D, double *G, double *cost, int numItermax); #endif |