Skip to content

Commit

Permalink
Test_centos7_release_66
Browse files Browse the repository at this point in the history
Signed-off-by: arnaud <[email protected]>
  • Loading branch information
ARnDOSrte committed Oct 17, 2023
1 parent b340566 commit aa795d6
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/qa_pr_cpp_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
yum install -y epel-release
yum install -y git redhat-lsb-core make wget centos-release-scl scl-utils
yum install -y devtoolset-9
yum install -y python3-pip
yum install -y python3 python3-pip
- name: Setup cmake
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --target install --parallel 2
- name: Tests
run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 -R "bug_pne" --output-on-failure
run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 --output-on-failure

- name: Code coverage
run: cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --target code-coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa_pr_cpp_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --parallel 2 --target install
- name: Tests
run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 -R "bug_pne" --output-on-failure
run: cd $GITHUB_WORKSPACE/metrix-simulator/build && ctest -j8 --output-on-failure

- name: Code coverage
run: cmake --build $GITHUB_WORKSPACE/metrix-simulator/build --target code-coverage
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/calculeEmpilementGroupes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ int Calculer::empilementEconomiqueDesGroupes(const std::shared_ptr<Variante>& va
LOG_ALL(info) << err::ioDico().msg("INFOSPXPenalisationTDHVDC");
}


// utilisation de PneSolveur
int status = METRIX_PAS_PROBLEME;
status = PneSolveur(UTILISATION_SIMPLEXE, varianteCourante);
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/calculecrirecontraintesdodu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4024,6 +4024,7 @@ int Calculer::ajoutContraintes(bool& existe_contrainte_active,
return METRIX_PAS_PROBLEME;
}


int Calculer::ajoutContrainte(const std::shared_ptr<Contrainte>& ctre, const std::vector<double>& secondMembreFixe)
{
if ((ctre->ctrSup_ && ctre->maxT_ == config::constants::valdef)
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/calculmacrofonctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ void Calculer::printFctObj(bool silent)
}
}


consoTotale_ = sumProdApresEmpilement;

fonction_objectif_C_ += fonction_objectif_G_cur_ + fonction_objectif_D_cur_;
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/compute/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace compute
{
void Solver::solve(PROBLEME_A_RESOUDRE* pne_problem) { PNE_Solveur(pne_problem); }


void Solver::solve(PROBLEME_SIMPLEXE* spx_problem)
{
if (problem_ != nullptr) {
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/config/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ void Configuration::initWithRawConfig(const raw_configuration& raw_config)
cost_ecart_ = helper::updateValueNumber(std::get<INTEGER>(raw_config), "COUTECAR", 10);
noise_cost_ = helper::updateValueNumber(std::get<FLOAT>(raw_config), "NULLCOST", 0.5);


lost_load_detailed_max_ = helper::updateValueNumber(std::get<INTEGER>(raw_config), "LOSTCMAX", 100U);

// log level
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/margin_variations_compute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

#include <algorithm>


MarginVariationMatrix::MarginVariationMatrix(int nbConstraints,
int nbComplementaryVar,
int nbVars,
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/metrix2assess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,7 @@ bool Calculer::computeCosts(const std::vector<int>& constraintsToDelail,
<< typeEtat_[numVar];
}


} else if (typeOu[j] == 4) { // curatif
if (typeEtat_[numVar] == GRP_CUR_H || typeEtat_[numVar] == GRP_CUR_B || typeEtat_[numVar] == CONSO_B
|| typeEtat_[numVar] == CONSO_H || typeEtat_[numVar] == DEPH_CUR_B
Expand Down
1 change: 1 addition & 0 deletions metrix-simulator/src/reseau.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3031,6 +3031,7 @@ void Reseau::updateVariant(MapQuadinVar& mapping, const config::VariantConfigura
}
}


for (const auto& group : config.randomGroups) {
auto groupesIt = groupes_.find(group);
if (groupesIt != groupes_.end()) {
Expand Down

0 comments on commit aa795d6

Please sign in to comment.