- XBT_DEBUG("Before share resources, the size of modified actions set is %zu", maxmin_system_->modified_set_->size());
- lmm_solve(maxmin_system_);
- XBT_DEBUG("After share resources, The size of modified actions set is %zu", maxmin_system_->modified_set_->size());
-
- while (not maxmin_system_->modified_set_->empty()) {
- Action* action = &(maxmin_system_->modified_set_->front());
- maxmin_system_->modified_set_->pop_front();
- bool max_duration_flag = false;
-
- if (action->get_state_set() != running_action_set_)
+ XBT_DEBUG("Before share resources, the size of modified actions set is %zu",
+ maxmin_system_->get_modified_action_set()->size());
+ maxmin_system_->solve();
+ Action::ModifiedSet* modified_action_set = maxmin_system_->get_modified_action_set();
+ XBT_DEBUG("After share resources, The size of modified actions set is %zu", modified_action_set->size());
+
+ while (not modified_action_set->empty()) {
+ Action* action = &(modified_action_set->front());
+ modified_action_set->pop_front();
+ ActionHeap::Type action_type = ActionHeap::Type::normal;
+
+ if (action->get_state_set() != &started_action_set_)