Skip to content

Commit 14e0ef2

Browse files
committed
Merge branch 'fix-2526' into hi-pdlp
2 parents a2e9266 + 955396f commit 14e0ef2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

highs/lp_data/HConst.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ const int8_t kPivotRowSingleton = 2;
365365
const int8_t kPivotColSingleton = 3;
366366
const int8_t kPivotMarkowitz = 4;
367367

368+
// For converting general LPs to form for PDLP
369+
//
370+
// Requires non-conforming names for cuPDLP-C
371+
enum ConstraintType { EQ = 0, LEQ, GEQ, BOUND, FREE };
372+
368373
// Mask for switching off PDLP features
369374
enum PdlpFeaturesOff {
370375
kPdlpAllFeaturesOn = 0,

highs/pdlp/CupdlpWrapper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
// } \
3131
// }
3232

33-
typedef enum CONSTRAINT_TYPE { EQ = 0, LEQ, GEQ, BOUND } constraint_type;
34-
3533
#define cupdlp_init_int(var, size) \
3634
{ (var) = (int*)malloc((size) * sizeof(int)); }
3735

highs/pdlp/hipdlp/pdhg.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ void PDLPSolver::PreprocessLp(const HighsLp& original_lp,
2525
int nRows_orig = original_lp.num_row_;
2626
int nCols_orig = original_lp.num_col_;
2727

28-
// std::vector<ConstraintType> constraint_types(nRows_orig);
2928
int num_new_cols = 0;
3029
int nEqs = 0;
3130
constraint_types_.resize(nRows_orig);

highs/pdlp/hipdlp/pdhg.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
#define USE_GPU 1
3333
// Debug mode
3434
#define DEBUG_MODE 1
35-
enum ConstraintType { EQ, GEQ, LEQ, BOUND, FREE };
36-
3735
// --- Classes ---
3836
class PDLPSolver {
3937
public:

0 commit comments

Comments
 (0)