Browse Source

better output in perm schedulers

Former-commit-id: 2a33124c7c
tempestpy_adaptions
sjunges 9 years ago
parent
commit
9593ba5a7f
  1. 3
      src/permissivesched/MILPPermissiveSchedulers.h
  2. 2
      src/permissivesched/PermissiveSchedulerPenalty.h

3
src/permissivesched/MILPPermissiveSchedulers.h

@ -42,8 +42,9 @@ class MilpPermissiveSchedulerComputation : public PermissiveSchedulerComputation
void calculatePermissiveScheduler(bool lowerBound, double boundary) override {
createMILP(lowerBound, boundary, this->mPenalties);
//STORM_LOG_DEBUG("Calling optimizer");
solver.optimize();
//STORM_LOG_DEBUG("Done optimizing.")
mCalledOptimizer = true;
}

2
src/permissivesched/PermissiveSchedulerPenalty.h

@ -22,7 +22,7 @@ namespace storm {
double get(storage::StateActionPair const& sap) const {
auto it = mPenalties.find(sap);
if(it == mPenalties.end()) {
return 1.0;
return 0.0;
}
else {
return it->second;

Loading…
Cancel
Save