Constrained Buckling Of Variable Length Elastica