26 mutable lp::LPSolver lp_solver_;
30 std::shared_ptr<ProbabilisticTask> task,
32 lp::LPSolverType solver_type)
33 : TaskDependentHeuristic(task, log)
34 , lp_solver_(solver_type)
38 value_t evaluate(
const State& state)
const final
40 assert(!lp_solver_.has_temporary_constraints());
42 static_cast<const Derived*
>(
this)->update_constraints(state);
46 value_t result = lp_solver_.has_optimal_solution()
47 ? lp_solver_.get_objective_value()
50 lp_solver_.clear_temporary_constraints();
51 static_cast<const Derived*
>(
this)->reset_constraints(state);