Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
traffic-scratch
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mehtank
traffic-scratch
Commits
3b90e2ab
Commit
3b90e2ab
authored
8 years ago
by
mehtank
Browse files
Options
Downloads
Patches
Plain Diff
eigenvalue of big A matrix vs max magnitude
parent
adf2aa8f
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
abstable.py
+14
-11
14 additions, 11 deletions
abstable.py
with
14 additions
and
11 deletions
abstable.py
+
14
−
11
View file @
3b90e2ab
from
matplotlib
import
pyplot
as
plt
from
numpy
import
arange
,
zeros
,
linspace
,
sign
from
numpy
import
arange
,
zeros
,
linspace
,
sign
,
logspace
,
log10
from
idmlin
import
IDMLin
t
=
1.5
amin
,
amax
,
acount
=
0.1
,
0.6
,
5
0
bmin
,
bmax
,
bcount
=
2
,
4
,
10
0
amin
,
amax
,
acount
=
log10
(
0.3
),
log10
(
3
)
,
2
0
bmin
,
bmax
,
bcount
=
log10
(
1
),
log10
(
4
),
2
0
arng
=
l
in
space
(
amin
,
amax
,
acount
)
brng
=
l
in
space
(
bmin
,
bmax
,
bcount
)
arng
=
l
og
space
(
amin
,
amax
,
acount
)
brng
=
l
og
space
(
bmin
,
bmax
,
bcount
)
s0
=
2
v0
=
30
re
=
0.
5
re
=
0.
1
ns
=
(
10
,
25
,
50
)
ns
=
(
200
,
)
f
,
axarr
=
plt
.
subplots
(
2
,
len
(
ns
)
+
1
,
sharex
=
True
,
sharey
=
True
)
#f, axarr = plt.subplots(2, 2, sharex=True, sharey=True)
...
...
@@ -29,10 +29,13 @@ for i, n in enumerate(ns):
def
isstable
(
a
,
b
):
idm
=
IDMLin
(
t
=
t
,
a
=
a
,
b
=
b
,
s0
=
s0
)
idm
.
go
(
v0
,
re
)
if
idm
.
isloopstable
(
n
):
return
1
,
sign
(
idm
.
os
())
else
:
return
0
,
sign
(
idm
.
os
())
sys
=
idm
.
sys
()
ils
=
idm
.
isloopstable
(
n
)
imr
=
idm
.
maxresponse
()
print
a
,
b
,
ils
,
imr
return
1
if
ils
else
0
,
imr
#return 1 if ils else 0, 1 if imr<0 else 0
for
ai
,
a
in
enumerate
(
arng
):
for
bi
,
b
in
enumerate
(
brng
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment