@@ -203,7 +203,7 @@ G = rss(n1,p,m); F = rss(n2,pf,m);
203203@time X, info = glasol (G, F; nehari = true , atol = 1.e-7 ); info
204204@test abs (glinfnorm (X* G- F)[1 ] - info. mindist) < 0.01 && (! info. nonstandard && isstable (X))
205205
206- # discrete-time, both G and F unstable #fails
206+ # discrete-time, both G and F unstable
207207n1 = 3 ; n2 = 2 ; m = 3 ; p = 2 ; pf = 1 ;
208208G = rss (n1,p,m,disc= true ); F = rss (n2,pf,m,disc= true );
209209@time X, info = glasol (G, F; reltol= 0.0001 , atol = 1.e-9 ); info
@@ -241,18 +241,17 @@ G = rss(n1,p,m,stable=true); F = rss(n2,pf,m,stable=true);
241241@time X, info = glasol (G, F; nehari = true , atol = 1.e-7 ); info
242242@test abs (glinfnorm (X* G- F)[1 ] - info. mindist) < 0.01 && (! info. nonstandard && isstable (X))
243243
244- # exact solution exists, no free poles
245- n1 = 3 ; n2 = 2 ; m = 3 ; p = 2 ; pf = 1 ;
246- G = rss (n1,p,m); X0 = rss (n2,pf,p,stable= true ); F = X0* G;
247- @time X, info = glasol (G, F, offset = 1.e-13 , atol = 1.e-7 ); info
248- @test abs (glinfnorm (X* G- F)[1 ] - info. mindist) < 1.e-5 && (! info. nonstandard && isstable (X))
249-
250244# exact solution exists, free poles exist
251245n1 = 3 ; n2 = 2 ; m = 2 ; p = 3 ; pf = 1 ;
252246G = rss (n1,p,m,stable= true ); X0 = rss (n2,pf,p,stable= true ); F = X0* G;
253247@time X, info = glasol (G, F, atol = 1.e-7 , poles = [- 2 , - 3 ], sdeg = - 1 ); info
254248@test abs (glinfnorm (X* G- F)[1 ] - info. mindist) < 1.e-7 && (! info. nonstandard && isstable (X))
255249
250+ # exact solution exists, no free poles
251+ n1 = 3 ; n2 = 2 ; m = 3 ; p = 2 ; pf = 1 ;
252+ G = rss (n1,p,m); X0 = rss (n2,pf,p,stable= true ); F = X0* G;
253+ @time X, info = glasol (G, F, offset = 1.e-13 , atol = 1.e-7 ); info
254+ @test abs (glinfnorm (X* G- F)[1 ] - info. mindist) < 1.e-5 && (! info. nonstandard && isstable (X))
256255
257256n1 = 3 ; n2 = 2 ; m = 2 ; p = 3 ; pf = 1 ;
258257G = rss (n1,p,m,stable= true ); X0 = rss (n2,pf,p,stable= true ); F = X0* G;
0 commit comments