Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
48c3156ea01c241d16fb20e3214d70c389b50b80
[simgrid.git] / src / kernel / lmm / maxmin.hpp
1 /* Copyright (c) 2004-2022. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef SIMGRID_KERNEL_LMM_MAXMIN_HPP
7 #define SIMGRID_KERNEL_LMM_MAXMIN_HPP
8
9 #include "src/kernel/lmm/System.hpp"
10
11 namespace simgrid {
12 namespace kernel {
13 namespace lmm {
14
15 class XBT_PUBLIC MaxMin : public System {
16 public:
17   using System::System;
18
19 private:
20   void do_solve() final;
21   template <class CnstList> void maxmin_solve(CnstList& cnst_list);
22
23   using dyn_light_t = std::vector<int>;
24
25   std::vector<ConstraintLight> cnst_light_vec;
26   dyn_light_t saturated_constraints;
27 };
28
29 } // namespace lmm
30 } // namespace kernel
31 } // namespace simgrid
32
33 #endif