diff --git a/src/solver/modeler/main.cpp b/src/solver/modeler/main.cpp
index 37ba0e9898..141b4986bf 100644
--- a/src/solver/modeler/main.cpp
+++ b/src/solver/modeler/main.cpp
@@ -19,6 +19,8 @@
* along with Antares_Simulator. If not, see .
*/
+#include
+
#include
#include
#include
@@ -84,11 +86,11 @@ int main(int argc, const char** argv)
case Antares::Solver::Modeler::Api::MipStatus::FEASIBLE:
if (!parameters.noOutput)
{
- logs.info() << "Variables";
- // TODO don't rely on this specific function
+ logs.info() << "Writing variables...";
+ std::ofstream sol_out(std::filesystem::current_path() / "solution.csv");
for (const auto& [name, value]: solution->solutionValues())
{
- logs.info() << name << " " << value;
+ sol_out << name << " " << value << std::endl;
}
}
break;