Skip to content

Commit eaf1ba9

Browse files
committed
[ModelicaSystem] simplify definition of optimizeOptions
1 parent 3e9c55b commit eaf1ba9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

OMPython/ModelicaSystem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,7 @@ def __init__(
361361
self._override_variables: dict[str, str] = {}
362362
self._simulate_options_override: dict[str, str] = {}
363363
self._linearization_options = {'startTime': 0.0, 'stopTime': 1.0, 'stepSize': 0.002, 'tolerance': 1e-8}
364-
self._optimization_options = {'startTime': 0.0, 'stopTime': 1.0, 'numberOfIntervals': 500, 'stepSize': 0.002,
365-
'tolerance': 1e-8}
364+
self._optimization_options = self._linearization_options | {'numberOfIntervals': 500}
366365
self._linearized_inputs: list[str] = [] # linearization input list
367366
self._linearized_outputs: list[str] = [] # linearization output list
368367
self._linearized_states: list[str] = [] # linearization states list

0 commit comments

Comments
 (0)