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

Improve support to integers #112

Closed
4 tasks done
darioizzo opened this issue May 25, 2017 · 2 comments
Closed
4 tasks done

Improve support to integers #112

darioizzo opened this issue May 25, 2017 · 2 comments
Assignees

Comments

@darioizzo
Copy link
Member

darioizzo commented May 25, 2017

At the current status integer programming support is limited. The integer part of the decision vector can be passed as an argument to algorithms and the evolve() takes care to apply different operators on the float and the integer part.

This way of doing things has obvious drawbacks and a better model would be to define an integer part of the decision vector in the problem.

  • Introduce in the UDP interface a get_nix(), that similarly to get_nic(), get_nec(), defines the integer part of the decision vector. (check that get_nix() <= get_nx() and that the bounds corresponding to the integer components are indeed integers)
  • Modify the population constructor so that random decision vectors will have integers in their integer part (maybe modify the pagmo::random_decision_vector utility)
  • Update the nsga2 and sga algorithms removing the m_int_dim member and using the get_nix() from the pagmo::problem instead
  • Update the algo list with the int information.
@darioizzo
Copy link
Member Author

#115 Is adressing this

@darioizzo
Copy link
Member Author

#115 is now merged into master ... minlp support will be available in 2.4

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