A polynomial adaptive controller for discretely parameterized systems