Skip to content

Commit af92236

Browse files
committed
Merge branch 'fix-minimization-fsm' into 'main'
Fix minimization fsm See merge request computational-modeling/maxpluslib!1
2 parents 7059f23 + f5cdc7d commit af92236

File tree

24 files changed

+478
-282
lines changed

24 files changed

+478
-282
lines changed

include/maxplus/algebra/mpmatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
#ifndef MAXPLUS_ALGEBRA_MATRIX_H_INCLUDED
4242
#define MAXPLUS_ALGEBRA_MATRIX_H_INCLUDED
4343

44-
#include "base/analysis/mcm/mcmgraph.h"
44+
#include "maxplus/base/analysis/mcm/mcmgraph.h"
4545
#include "mptype.h"
4646
#include <memory>
4747
#include <unordered_set>

include/maxplus/algebra/mpsparsematrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
#ifndef MAXPLUS_ALGEBRA_SPARSEMATRIX_H_INCLUDED
4141
#define MAXPLUS_ALGEBRA_SPARSEMATRIX_H_INCLUDED
4242

43-
#include "algebra/mpmatrix.h"
43+
#include "mpmatrix.h"
4444
#include "mptype.h"
4545
#include <vector>
4646

include/maxplus/algebra/mptype.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
#ifndef BASE_MAXPLUS_MPTYPE_H_INCLUDED
4545
#define BASE_MAXPLUS_MPTYPE_H_INCLUDED
4646

47-
#include "base/basic_types.h"
48-
#include "base/string/cstring.h"
47+
#include "maxplus/base/basic_types.h"
48+
#include "maxplus/base/string/cstring.h"
4949
#include <cassert>
5050
#include <cmath>
5151

@@ -115,6 +115,7 @@ inline CDouble MP_MIN(CDouble a, CDouble b) { return CDouble(MP_MIN(MPTime(a), M
115115
const MPTime MP_MINUSINFINITY = MPTime(-1.0e+30);
116116

117117
inline bool MP_ISMINUSINFINITY(CDouble a) { return a < MPTIME_MIN_INF_VAL; }
118+
inline bool MP_ISMINUSINFINITY(MPTime a) { return a < MP_MINUSINFINITY; }
118119

119120
inline MPTime MP_PLUS(CDouble a, CDouble b) {
120121
return (MP_ISMINUSINFINITY(a) || MP_ISMINUSINFINITY(b)) ? MP_MINUSINFINITY

include/maxplus/base/analysis/mcm/mcm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#ifndef BASE_ANALYSIS_MCM_MCM_H_INCLUDED
4646
#define BASE_ANALYSIS_MCM_MCM_H_INCLUDED
4747

48-
#include "base/analysis/mcm/mcmgraph.h"
48+
#include "maxplus/base/analysis/mcm/mcmgraph.h"
4949

5050
namespace Graphs {
5151

include/maxplus/base/analysis/mcm/mcmdg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#ifndef BASE_ANALYSIS_MCM_MCMDG_H_INCLUDED
5252
#define BASE_ANALYSIS_MCM_MCMDG_H_INCLUDED
5353

54-
#include "base/analysis/mcm/mcmgraph.h"
54+
#include "maxplus/base/analysis/mcm/mcmgraph.h"
5555

5656
namespace Graphs {
5757

include/maxplus/base/analysis/mcm/mcmgraph.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#ifndef BASE_ANALYSIS_MCM_MCMGRAPH_H_INCLUDED
4343
#define BASE_ANALYSIS_MCM_MCMGRAPH_H_INCLUDED
4444

45-
#include "base/basic_types.h"
45+
#include "maxplus/base/basic_types.h"
4646
#include <memory>
4747
#include <utility>
4848

@@ -252,7 +252,7 @@ void stronglyConnectedMCMgraph(MCMgraph &g,
252252
* The function removes all hidden nodes and edges from the graph. All visible
253253
* edges are assigned a new id starting in the range [0,nrNodes()).
254254
*/
255-
void relabelMCMgraph(std::shared_ptr<MCMgraph> g);
255+
void relabelMCMgraph(MCMgraph& g);
256256

257257
/**
258258
* addLongestDelayEdgesToMCMgraph ()
@@ -261,7 +261,7 @@ void relabelMCMgraph(std::shared_ptr<MCMgraph> g);
261261
* with no delay are removed and edges with more than one delay element
262262
* are converted into a sequence of edges with one delay element.
263263
*/
264-
void addLongestDelayEdgesToMCMgraph(std::shared_ptr<MCMgraph> g);
264+
void addLongestDelayEdgesToMCMgraph(MCMgraph& g);
265265

266266
} // namespace Graphs
267267
#endif

include/maxplus/base/analysis/mcm/mcmhoward.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#ifndef BASE_ANALYSIS_MCM_MCMHOWARD_H_INCLUDED
5353
#define BASE_ANALYSIS_MCM_MCMHOWARD_H_INCLUDED
5454

55-
#include "base/analysis/mcm/mcmgraph.h"
55+
#include "maxplus/base/analysis/mcm/mcmgraph.h"
5656
#include <memory>
5757
namespace Graphs {
5858
/**

include/maxplus/base/analysis/mcm/mcmyto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#ifndef BASE_ANALYSIS_MCM_MCMYTO_H_INCLUDED
4949
#define BASE_ANALYSIS_MCM_MCMYTO_H_INCLUDED
5050

51-
#include "base/analysis/mcm/mcmgraph.h"
51+
#include "maxplus/base/analysis/mcm/mcmgraph.h"
5252
#include <cstdint>
5353
#include <memory>
5454
#include <vector>

0 commit comments

Comments
 (0)