Skip to content
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

Error when defining typevar as int or float #5

Open
lureevnat opened this issue Feb 23, 2019 · 0 comments
Open

Error when defining typevar as int or float #5

lureevnat opened this issue Feb 23, 2019 · 0 comments

Comments

@lureevnat
Copy link

`# define the variable type which will be checked before the evaluation

    self.type_var = np.int

`
When I change the self.type_var as np.int when defining custom problem, and running nsga3 algorithm present in pymoo, I am getting below error. Can't I chane the type of variable?

` File "/home/coea/anaconda3/envs/pymoo/lib/python3.6/site-packages/pymop/problem.py", line 132, in evaluate
% (self.type_var, type_of_var))

Exception: As variable type for this problem <class 'int'> was defined. However, it is evaluated with float64!`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant