Project-Platypus / Platypus

A Free and Open Source Python Library for Multiobjective Optimization
GNU General Public License v3.0
563 stars 153 forks source link

Generation of real discrete data #157

Closed yushiokamura closed 3 years ago

yushiokamura commented 3 years ago

Hi, I'm currently using Platypus

I want to select only one float from multiple floats and generate a variable when using NSGAIII But it seems that there is no Type that corresponds to my purpose

I want :

if

TypesObj(0.0, 0.2, 0.3).rand()

then return 0.0 (float) or return 0.2 (float) or return 0.3 (float)

Float is preferred instead of list as the return type How can I achieve this?