- return new CpuCas01Action(get_model(), size, not is_on(), speed_.scale * speed_.peak, get_constraint(),
- requested_cores);
+ auto* action =
+ new CpuCas01Action(get_model(), size, not is_on(), speed_.scale * speed_.peak, get_constraint(), requested_cores);
+ action->set_user_bound(user_bound);
+ if (user_bound > 0 && user_bound < action->get_bound()) {
+ get_model()->get_maxmin_system()->update_variable_bound(action->get_variable(), user_bound);
+ }
+ if (factor_cb_) {
+ action->set_rate_factor(factor_cb_(size));
+ }
+
+ return action;