You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
get_nix()
, that similarly toget_nic()
,get_nec()
, defines the integer part of the decision vector. (check thatget_nix() <= get_nx()
and that the bounds corresponding to the integer components are indeed integers)nsga2
andsga
algorithms removing them_int_dim
member and using theget_nix()
from thepagmo::problem
insteadThe text was updated successfully, but these errors were encountered: