Skip to content
Snippets Groups Projects
Commit 0bf99c37 authored by t steve's avatar t steve
Browse files

retro compatibility with old numpy api

parent d96b284b
No related branches found
No related tags found
No related merge requests found
......@@ -33,10 +33,10 @@ eq.setNewContacts(asmatrix(P),asmatrix(N),0.3,EquilibriumAlgorithm.EQUILIBRIUM_A
#~ eq.setNewContacts(asmatrix(P),asmatrix(N),0.3,EquilibriumAlgorithm.EQUILIBRIUM_ALGORITHM_LP)
# setting up optimization problem
c0 = matrix([0.,0.,1.])
c0 = matrix([0.,0.,1.]).T
#~ dc0 = matrix(np.random.uniform(-1, 1, size=3));
dc0 = matrix([0.1,0.,0.])
l0 = matrix([0.,0.,0.])
dc0 = matrix([0.1,0.,0.]).T
l0 = matrix([0.,0.,0.]).T
T = 1.2
tstep = -1.
......@@ -57,3 +57,6 @@ assert(np.asarray(a.x[2])[0][0] <=0.5)
a = zeroStepCapturability(eq,c0,dc0,l0,True,T,tstep,Kin,matrix(kin))
#testing flags
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment