Skip to content

Instantly share code, notes, and snippets.

@argha0x
Created July 29, 2020 11:28
Show Gist options
  • Select an option

  • Save argha0x/deb4e1e33f12c90c519c9a419afb7ed8 to your computer and use it in GitHub Desktop.

Select an option

Save argha0x/deb4e1e33f12c90c519c9a419afb7ed8 to your computer and use it in GitHub Desktop.
At Time step 326,(Till this time step ADMM converges to Implicit Euler)
x0 = 4.51531199897907420 x1 = 6.98979200069059114
v0 = 1.65610091692460770 v1 = -1.10406727794192250
(This is the value of x, v at the start of the next time step)
Then,at Time Step 327, for the 20 admm iterations the x, z, u are printed
Iteration 1
z = -3.737240000855759
u = 1.262759999144242
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 2
z = -3.0921123481281496
u = 1.9078876518718504
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 3
z = -2.7695485217643454
u = 2.2304514782356546
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 4
z = -2.6082666085824435
u = 2.391733391417557
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 5
z = -2.5276256519914924
u = 2.472374348008508
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 6
z = 2.5126948263039837
u = -2.487305173696017
x0 = 4.53205917234947187 x1 = 6.97862721844373635
Iteration 7
z = -4.966936609895141
u = 0.03306339010485981
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 8
z = -3.706960652647841
u = 1.2930393473521598
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 9
z = -3.0769726740241907
u = 1.9230273259758093
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 10
z = -2.761978684712366
u = 2.238021315287634
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 11
z = -2.6044816900564536
u = 2.3955183099435464
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 12
z = -2.5257331927284974
u = 2.4742668072715026
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 13
z = 2.513641055935481
u = -2.4863589440645195
x0 = 4.53205917234947187 x1 = 6.97862721844373635
Iteration 14
z = -4.966463495079392
u = 0.03353650492060822
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 15
z = -3.7067240952399665
u = 1.2932759047600335
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 16
z = -3.076854395320254
u = 1.9231456046797462
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 17
z = -2.7619195453603975
u = 2.2380804546396025
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 18
z = -2.6044521203804694
u = 2.3955478796195306
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 19
z = -2.5257184078905053
u = 2.4742815921094947
x0 = 4.53180918276570655 x1 = 6.97879387816624774
Iteration 20
z = 2.513648448354477
u = -2.4863515516455235
x0 = 4.53205917234947187 x1 = 6.97862721844373635
----------------------------------------------------------------------------------------------------------
True Solution at time step 327(From Implicit Euler)
x0 = 4.5318090626553547 x1 = 6.9787939582298106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment