Ryo Kimura
Ryo Kimura
Could you please show any examples that how to extend the `problem` class or `create_solution` function in order to use your own initial solution ? @AndreasH96
@AndreasH96 Thank you for your reply ! I would like to use my own initial solutions. Your code help me to extend problem class. I will try my own problem...
Thank you for your support ! However, I didn't know how to override the `create_initial_solutions ()` method. I'll study Python a little more and then try to implement it.
I tried to override the `create_initial_solutions()` method as below. But it can't work well. I think that the return of `create_initial_solutions' was wrong on my description . ```python from typing...
I tried override `create_initial_solution` as below. I reduced the number to make it easier to check the operation. ```python import random random.seed(1) if __name__ == '__main__': problem = ZDT2() problem.reference_front...
I was able to read `initial_solutions` from 'VAR.NSGAII.ZDT1' file. The `create_initial_solutions` method were overriden and `initial_solutions` was evaluated. However, after evaluate `initial_solutions`, "IndexError: list index out of range" was occurred....
It worked for the time being. I found that `lower_bound` and `upper_bound` are also needed. ```python ############ def read_initial_solutions_VAR(filename:str): """ read initial_solutions from the 'VAR.*.*' file. """ initial_solution_VAR=[] if Path(filename).is_file():...