jMetalPy icon indicating copy to clipboard operation
jMetalPy copied to clipboard

How to use Integer and Float variables in one problem?

Open simplexity-kaiou opened this issue 3 years ago • 1 comments

How can I mix variables of different types or how can I set which varibles are discrete and which are contiguous like [0, 1, 0, 2, 1.2, 0.2, 3.6, 1.5] the first four columns are discrete values and the last four columns are continuous values?

simplexity-kaiou avatar Dec 22 '20 16:12 simplexity-kaiou

Are the discrete variable values enclosed in a range values? If so, the simplest way would be to work with real values and round the integer ones when evaluating the solutions.

ajnebro avatar Jan 08 '21 08:01 ajnebro