-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
100 x 100 matrix evaluation #9
Comments
Hello, could you share the call you made to the NSGA-II function? |
Hi, here is the code, from the example you provide in the repository. Following your explanation above,
|
I've tested the code and I was unable to reproduce the error. I've made a small modification to the objective function code to include printing the candidate solution along with its dimension in the first evaluation:
I've also attempted to verify it using the monitor argument (This will print the solution at the end of each generation), and the results consistently match the print statement within the objective function and the parameters specified in the function call. The monitor function that will be called at the end of each generation:
The candidate solution printed by the objective function in the first evaluation:
And the printing of the monitor function:
Does this error occur exclusively when using the sample code, or does it also occur with other specific problems? |
Hi, I have already discovered the cause. I was not passing the "nObj" parameter. Without it, the algorithm assumes that the number of objective function is 100? When I debugged it, I get to this part in your code: { if (is.null(nObj)) { |
Hello, great project. However, I have a question, why at the beginning of the NSGA-II execution, it calls the fitness function with a 100 x 100 matrix? This evaluation causes me problems, because in the implementation of my fitness function I expect a vector of 1xn (n number of dimension) or maybe a matrix of mxn. But no, a 100x100 matrix.
The text was updated successfully, but these errors were encountered: