def MV(self, name=None, value=None, lb=None, ub=None, integer=False):
Change these variables optimally to meet objectives
if name is not None:
name = "".join(e for e in name if e.isalnum()).lower()
else:
name = "p" + str(len(self.parameters) + 1)
if integer == True:
name = "int_"+name
After Change
def MV(self, name=None, value=None, lb=None, ub=None, integer=False):
Change these variables optimally to meet objectives
if name is not None:
name = re.sub(r"\W+", "", name).lower()
else:
name = "p" + str(len(self.parameters) + 1)
if integer == True:
name = "int_"+name