Skip to content

Commit f10c2af

Browse files
committed
Changed to newton solver per default in roadrunner steady state. Allow more steady state presimulation
1 parent 7e7a6f3 commit f10c2af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pypesto/objective/roadrunner/roadrunner_calculator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,17 @@ def simulate_per_condition(
205205
parameter_mapping_per_condition,
206206
preeq=True,
207207
)
208+
roadrunner_instance.setSteadyStateSolver("newton")
208209
# allow simulation to reach steady state
209210
roadrunner_instance.getSteadyStateSolver().setValue(
210211
"allow_presimulation", True
211212
)
213+
roadrunner_instance.getSteadyStateSolver().setValue(
214+
"presimulation_maximum_steps", 1000
215+
)
216+
roadrunner_instance.getSteadyStateSolver().setValue(
217+
"presimulation_time", 1000
218+
)
212219
# steady state output = observables + state variables
213220
steady_state_selections = observables_ids + state_variables
214221
roadrunner_instance.steadyStateSelections = steady_state_selections

0 commit comments

Comments
 (0)