Skip to content

Commit ba9bd65

Browse files
committed
more updates
1 parent 7d10603 commit ba9bd65

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/test_ODESystem.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ P02 = ss(P02_named)
5757
# same for controller
5858
x = unknowns(C)
5959
@nonamespace C02 = named_ss(C, [C.input], [C.output]; op)
60-
@test ss(C02) == C0
60+
@test tf(ss(C02)) tf(C0)
6161

6262

6363
## Back again for a complete round trip, test that System get correct names
@@ -296,8 +296,12 @@ lin_inputs = [force.f.u]
296296

297297
# => nothing to remove extra defaults
298298
op = Dict(cart.s => 10, cart.v => 0, link1.A => -pi/2, link1.dA => 0, force.f.u => 0, link1.x1 => nothing, link1.y1 => nothing, link1.x2 => nothing, link1.x_cm => nothing)
299+
# op = Dict(cart.s => 10, cart.v => 0, link1.A => -pi/2, link1.dA => 0, force.f.u => 0)
300+
301+
guesses = [link1.fy1 => 0.1, cart.f => 0.1]
302+
299303
G = named_ss(model, lin_inputs, lin_outputs; allow_symbolic = true, op,
300-
allow_input_derivatives = true, zero_dummy_der = true)
304+
allow_input_derivatives = true, zero_dummy_der = true, guesses)
301305
G = sminreal(G)
302306
@info "minreal"
303307
G = minreal(G)

0 commit comments

Comments
 (0)