Skip to content

Commit 91b92f6

Browse files
authored
Allow empty inputs in generate_control_function
1 parent 79933ea commit 91b92f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/inputoutput.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,7 @@ function generate_control_function(sys::AbstractODESystem, inputs = unbound_inpu
193193
implicit_dae = false,
194194
simplify = false,
195195
kwargs...)
196-
if isempty(inputs)
197-
error("No unbound inputs were found in system.")
198-
end
196+
isempty(inputs) && @warn("No unbound inputs were found in system.")
199197

200198
if disturbance_inputs !== nothing
201199
# add to inputs for the purposes of io processing

0 commit comments

Comments
 (0)