Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Feb 13, 2024
1 parent 692ac21 commit ecd889e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 38 deletions.
1 change: 1 addition & 0 deletions src/libs/antares/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,7 @@ target_include_directories(libantares-core

target_link_libraries(libantares-core
PUBLIC
ortools::ortools
yuni-static-core
yuni-static-uuid
libantares-core-calendar
Expand Down
7 changes: 6 additions & 1 deletion src/solver/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set(SRC
ortools_utils.cpp
filename.h
filename.cpp
named_problem.h
include/antares/solver/utils/named_problem.h
named_problem.cpp
mps_utils.h
mps_utils.cpp
Expand All @@ -26,3 +26,8 @@ target_link_libraries(utils
sirius_solver
libantares-core
)

target_include_directories(utils
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/include
)
2 changes: 1 addition & 1 deletion src/solver/utils/mps_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern "C"
#include "srs_api.h"
}

#include "named_problem.h"
#include "include/antares/solver/utils/named_problem.h"
#include "ortools_utils.h"

using namespace Antares;
Expand Down
6 changes: 3 additions & 3 deletions src/solver/utils/named_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ namespace Antares
{
namespace Optimization
{
using BasisStatus = operations_research::MPSolver::BasisStus;
using BasisStatus = operations_research::MPSolver::BasisStatus;

PROBLEME_SIMPLEXE_NOMME::PROBLEME_SIMPLEXE_NOMME(const std::vector<std::string>& NomDesVariables,
const std::vector<std::string>& NomDesContraintes,
PROBLEME_SIMPLEXE_NOMME::PROBLEME_SIMPLEXE_NOMME(std::vector<std::string>& NomDesVariables,
std::vector<std::string>& NomDesContraintes,
std::vector<BasisStatus>& StatutDesVariables,
std::vector<BasisStatus>& StatutDesContraintes) :
NomDesVariables(NomDesVariables),
Expand Down
31 changes: 0 additions & 31 deletions src/solver/utils/named_problem.h

This file was deleted.

3 changes: 1 addition & 2 deletions src/solver/utils/ortools_wrapper.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#ifndef __ORTOOLS_WRAPPER__
#define __ORTOOLS_WRAPPER__

#include "named_problem.h"

#include "include/antares/solver/utils/named_problem.h"
using namespace operations_research;

MPSolver* ORTOOLS_Simplexe(Antares::Optimization::PROBLEME_SIMPLEXE_NOMME* Probleme,
Expand Down

0 comments on commit ecd889e

Please sign in to comment.