swh:1:snp:7a4cd2a5ec73a061be17605597c4b1660b799026
Tip revision: 121131be58bc1b6f91a4863bd01fe7cbd0439ab9 authored by Max Göttlicher on 16 August 2023, 15:14:58 UTC
readme
readme
Tip revision: 121131b
gurobi_common.hpp
#ifndef PDS_GUROBI_COMMON_HPP
#define PDS_GUROBI_COMMON_HPP
#include "pds.hpp"
struct GRBModel;
struct GRBVar;
struct GRBEnv;
namespace pds {
struct MIPModel {
std::unique_ptr<GRBModel> model;
map<PowerGrid::VertexDescriptor, GRBVar> xi;
MIPModel();
MIPModel(MIPModel&& other) = default;
virtual ~MIPModel();
};
void preloadMIPSolver();
GRBEnv& getEnv();
void relaxMIPModel(MIPModel&);
}
#endif //PDS_GUROBI_COMMON_HPP