function, and came across an indexing error.
Attempted to access model.K.s(8); index out of bounds because numel(model.K.s)=7.
Error in eliminatevariables (line 124)
n = model.K.s(i);
Error in optimizer/subsref (line 104)
[self.model,keptvariables,infeasible] = eliminatevariables(self.model,self.parameters,thisData(:));