Make constraint island discovery on by default.
Also fix latent bug in mjData serialization. PiperOrigin-RevId: 799505349 Change-Id: I299e7cc8133fa2ec0b339a7ff3d02543e06778b1
This commit is contained in:
committed by
Copybara-Service
parent
4cf5c37211
commit
ec94bb49aa
@@ -58,6 +58,13 @@ class SolverTest(parameterized.TestCase):
|
||||
m.opt.solver = solver_
|
||||
m.opt.cone = cone
|
||||
m.opt.iterations = iterations
|
||||
|
||||
# with islanding on, MuJoCo CG converges *much* faster,
|
||||
# too fast for the low-iteration comparison to be meaningful,
|
||||
# so we disable islanding at low iteration count
|
||||
if iterations < 5:
|
||||
m.opt.disableflags |= mujoco.mjtDisableBit.mjDSBL_ISLAND
|
||||
|
||||
d = mujoco.MjData(m)
|
||||
|
||||
def cost(qacc):
|
||||
|
||||
Reference in New Issue
Block a user