in MixedIntegerFloatProblem .py I think it should be :
random.uniform(self.float_lower_bound[i] 1.0, self.float_upper_bound[i] 1.0)
and in integer_solution.variables it should be :
random.uniform(self.int_lower_bound[i], self.int_upper_bound[i])
instead of :
float_solution.variables = [
random.uniform(self.float_lower_bound[i] 1.0, self.float_upper_bound[i] 0.01)
for i in range(len(self.int_lower_bound))
]
integer_solution.variables = [
random.uniform(self.float_lower_bound[i], self.float_upper_bound[i])
for i in range(len(self.float_lower_bound))
]
I know it is working in this mixed-integer float problem but just to assure my understanding and in order not to let anyone confused about it
I made a pull request to fix this #153 https://github.com/jMetal/jMetalPy/pull/153#issue-1446918624
in MixedIntegerFloatProblem .py I think it should be : random.uniform(self.float_lower_bound[i] 1.0, self.float_upper_bound[i] 1.0) and in integer_solution.variables it should be : random.uniform(self.int_lower_bound[i], self.int_upper_bound[i])
instead of :
float_solution.variables = [ random.uniform(self.float_lower_bound[i] 1.0, self.float_upper_bound[i] 0.01) for i in range(len(self.int_lower_bound)) ]
I know it is working in this mixed-integer float problem but just to assure my understanding and in order not to let anyone confused about it I made a pull request to fix this #153 https://github.com/jMetal/jMetalPy/pull/153#issue-1446918624