Skip to content

Commit

Permalink
Actually assed HighsMipWorker.cpp and HighsMipWorker.h
Browse files Browse the repository at this point in the history
  • Loading branch information
jajhall committed Feb 2, 2025
1 parent fdb5bf8 commit 264e9c3
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/mip/HighsMipWorker.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Available as open-source under the MIT License */
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "mip/HighsMipWorker.h"

HighsMipWorker::HighsMipWorker(HighsMipSolver& mipsolver)
: mipsolver_(mipsolver)//,
// cutpool_(mipsolver.numCol(), mipsolver.options_mip_->mip_pool_age_limit,
// mipsolver.options_mip_->mip_pool_soft_limit),
// conflictPool_(5 * mipsolver.options_mip_->mip_pool_age_limit,
// mipsolver.options_mip_->mip_pool_soft_limit),
// cliquetable_(mipsolver.numCol()),
// lprelaxation_(mipsolver)
{}

34 changes: 34 additions & 0 deletions src/mip/HighsMipWorker.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the HiGHS linear optimization suite */
/* */
/* Available Hias open-source under the MIT License */
/* */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef HIGHS_MIP_WORKER_H_
#define HIGHS_MIP_WORKER_H_

#include "mip/HighsCliqueTable.h"
#include "mip/HighsConflictPool.h"
#include "mip/HighsCutPool.h"
//#include "mip/HighsDomain.h"
#include "mip/HighsLpRelaxation.h"
#include "mip/HighsMipSolver.h"
#include "mip/HighsSearch.h"
//#include "mip/HighsNodeQueue.h"
//#include "mip/HighsPseudocost.h"
//#include "mip/HighsSeparation.h"
//#include "presolve/HighsSymmetry.h"
//#include "util/HighsHash.h"

class HighsMipWorker {
const HighsMipSolver& mipsolver_;
HighsLpRelaxation lprelaxation_;
HighsCutPool cutpool_;
HighsConflictPool conflictpool_;
HighsCliqueTable cliquetable_;
HighsSearch search_;
};

HighsMipWorker(const HighsMipSolver& mipsolver);
#endif

0 comments on commit 264e9c3

Please sign in to comment.