Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def initialize(self):
self.options.declare(
'grid_data', types=GridData,
desc='Container object for grid info')
self.options.declare(
'control_options', types=dict,
desc='Dictionary of control names/options for the phase')
def initialize(self):
self.options.declare('polynomial_control_options', types=dict,
desc='Dictionary of options for the polynomial controls')
self.options.declare('time_units', default=None, allow_none=True, types=str,
desc='Units of time')
self.options.declare('grid_data', types=GridData, desc='Container object for grid info')
def initialize(self):
self._timeseries_outputs = []
self._vars = []
self.options.declare('input_grid_data',
types=GridData,
desc='Container object for grid on which inputs are provided.')
self.options.declare('output_grid_data',
types=GridData,
allow_none=True,
default=None,
desc='Container object for grid on which outputs are interpolated.')
self.options.declare('output_subset',
types=str,
default='all',
desc='Name of the node subset at which outputs are desired.')
def initialize(self):
self.options.declare(
'grid_data', types=GridData,
desc='Container object for grid info')
self.options.declare(
'state_options', types=dict,
desc='Dictionary of state names/options for the phase')
self.options.declare(
'time_units', default=None, allow_none=True, types=str,
desc='Units of time')
def init_grid(self):
self.grid_data = GridData(num_segments=self.options['num_segments'],
transcription='runge-kutta',
transcription_order=self.options['method'],
segment_ends=self.options['segment_ends'],
compressed=self.options['compressed'])
def initialize(self):
self.options.declare(
'control_options', types=dict,
desc='Dictionary of options for the dynamic controls')
self.options.declare(
'time_units', default=None, allow_none=True, types=str,
desc='Units of time')
self.options.declare(
'grid_data', types=GridData,
desc='Container object for grid info')
# Save the names of the dynamic controls/parameters
# self._dynamic_names = []
self._input_names = {}
self._output_val_names = {}
self._output_rate_names = {}
self._output_rate2_names = {}
def initialize(self):
self.options.declare('polynomial_control_options', types=dict,
desc='Dictionary of options for the polynomial controls')
self.options.declare('time_units', default=None, allow_none=True, types=str,
desc='Units of time')
self.options.declare('grid_data', types=GridData, desc='Container object for grid info')
self.options.declare('output_nodes_per_seg', default=None, types=(int,), allow_none=True,
desc='If None, results are provided at the all nodes within each'
'segment. If an int (n) then results are provided at n '
def initialize(self):
self.options.declare('control_options', types=dict,
desc='Dictionary of options for the dynamic controls')
self.options.declare('time_units', default=None, allow_none=True, types=str,
desc='Units of time')
self.options.declare('grid_data', types=GridData, desc='Container object for grid info')
self.options.declare('output_nodes_per_seg', default=None, types=(int,), allow_none=True,
desc='If None, results are provided at the all nodes within each'
'segment. If an int (n) then results are provided at n '
'equally distributed points in time within each segment.')
# Save the names of the dynamic controls/parameters
self._dynamic_names = []
self._input_names = {}
self._output_val_names = {}
self._output_val_all_names = {}
self._output_rate_names = {}
self._output_rate2_names = {}
def initialize(self):
self.options.declare(
'grid_data', types=GridData,
desc='Container object for grid info')
self.options.declare(
'state_options', types=dict,
desc='Dictionary of state names/options for the phase')
def initialize(self):
self.options.declare('grid_data', types=GridData,
desc='Container object for grid info')
self.options.declare('state_options', types=dict,
desc='Dictionary of state names/options for the phase')
self.options.declare('control_options', types=dict,
desc='Dictionary of control names/options for the phase')
self.options.declare('time_units', default=None, allow_none=True, types=str,
desc='Units of the integration variable')