-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95265ed
commit 225bd24
Showing
15 changed files
with
227 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// Created by marechaljas on 27/10/23. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <filesystem> | ||
#include <string> | ||
|
||
#include "ProblemGenerationExeOptions.h" | ||
#include "ProblemGenerationLogger.h" | ||
#include "ProblemGenerationOptions.h" | ||
|
||
class ProblemGeneration { | ||
public: | ||
explicit ProblemGeneration(ProblemGenerationOptions& options); | ||
void updateProblems(); | ||
ProblemGenerationOptions& options_; | ||
|
||
virtual void RunProblemGeneration( | ||
const std::filesystem::path& xpansion_output_dir, | ||
const std::string& master_formulation, | ||
const std::string& additionalConstraintFilename_l, | ||
const std::filesystem::path& archive_path, | ||
ProblemGenerationLog::ProblemGenerationLoggerSharedPointer logger, | ||
const std::filesystem::path& log_file_path, | ||
const std::filesystem::path& weights_file, bool unnamed_problems); | ||
|
||
private: | ||
void ProcessWeights( | ||
const std::filesystem::path& xpansion_output_dir, | ||
const std::filesystem::path& antares_archive_path, | ||
const std::filesystem::path& weights_file, | ||
ProblemGenerationLog::ProblemGenerationLoggerSharedPointer logger); | ||
void ExtractUtilsFiles( | ||
const std::filesystem::path& antares_archive_path, | ||
const std::filesystem::path& xpansion_output_dir, | ||
ProblemGenerationLog::ProblemGenerationLoggerSharedPointer logger); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// Created by marechaljas on 27/10/23. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <filesystem> | ||
#include <vector> | ||
|
||
class ProblemGenerationOptions { | ||
public: | ||
virtual ~ProblemGenerationOptions() = default; | ||
[[nodiscard]] virtual std::filesystem::path XpansionOutputDir() const = 0; | ||
[[nodiscard]] virtual std::string MasterFormulation() const = 0; | ||
[[nodiscard]] virtual std::string AdditionalConstraintsFilename() const = 0; | ||
[[nodiscard]] virtual std::filesystem::path ArchivePath() const = 0; | ||
[[nodiscard]] virtual std::filesystem::path WeightsFile() const = 0; | ||
[[nodiscard]] virtual std::vector<int> ActiveYears() const = 0; | ||
[[nodiscard]] virtual bool UnnamedProblems() const = 0; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.