# set up two variables for Phi and Psi dihedral angles
# drag this
phi: TORSION ATOMS=5,7,9,15
# this is just to monitor that you end up in the interesting state
psi: TORSION ATOMS=7,9,15,17
# the movingrestraint
restraint: ...
        MOVINGRESTRAINT
        ARG=phi
        AT0=-1.5 STEP0=0      KAPPA0=5000
        AT1=1.3  STEP1=2000   KAPPA1=5000
...
# monitor the two variables and various restraint outputs
PRINT STRIDE=10 ARG=* FILE=colvar
