cossan-working-group / OpenCossan

OpenCossan is an open and free toolbox for uncertainty quantification and management.
https://cossan.co.uk
50 stars 18 forks source link

Genetic algorithm apply method fails when OptimisationProblem with multiple objectives is passed #11

Open JCSadeghi opened 5 years ago

JCSadeghi commented 5 years ago

The genetic algorithm class fails inexplicably when multiple objectives are passed e.g. like

%% Define OptimizationProblem
Xop     = OptimizationProblem('Sdescription','Constrained Minimization','Xinput',Xin,...
    'CXobjectiveFunctions', {Xobj Xobj2} ,'Xconstraint',[Xcon1 Xcon2]);

We need to add some validation to the genetic algorithm class to fail elegantly. This issue caused #8