Repository navigation
[2.9.0] - 10.11.2026
Highlights
This release adds several evolutionary algorithms (SPEA2, AGE-MOEA-II,
Modified WASF-GA) and SingleObjectiveConstrainedRankingSelector for
single-objective constrained problems, and extends CUMULUS with uncertainty
measures and feasibility checks of problem modifications. In the Web GUI, it
fixes a cross-site scripting vulnerability in the math input (mathlive). Some
changes break existing code or change results:
Constraint.is_linearnow defaults toFalse, andis_linear=Trueforces
is_convexandis_twice_differentiabletoTrue. This can change which
solver is picked for problems that do not state their constraints'
linearity.- The CUMULUS endpoints no longer accept
hard_constraints, and their
solution lists no longer carryvariable_values.CumulusModificationState
gains two columns andCumulusObjectiveConstraintStateloses
hard_constraint_ids, so existing databases need a migration or a rebuild. solver_optionswas added to the NAUTILUS and NAUTILI functions ahead of
existing parameters, sonautilus_stepandnautili_stepcalls that pass
pointsorgroup_improvement_directionpositionally break.- Scenario aggregation now raises
ValueErrorfor a symbol missing from some
leaf scenarios, and the scenario symbol maps no longer list leaves that do
not carry an element. - Results change for STOM with maximized objectives, for
add_asf_nondiff
withreference_in_aug=True, for CVaR of maximized objectives, and for EA
runs that hit the clip repair defect.
Core logic
Added
- Added SPEA2 (Zitzler, Laumanns and Thiele 2001):
SPEA2Selector,
SPEA2SelectorOptions,spea2_optionsandspea2_mixed_integer_options. The
archive size is the selector'spopulation_sizeand the population size is
the mating tournament'swinner_size, both 100 inspea2_options. On
constrained problems the strengths and raw fitness use constrained domination,
which is DESDEO's addition. - Added AGE-MOEA-II (Panichella 2022):
AGEMOEA2Selector,
AGEMOEA2SelectorOptions,agemoea2_optionsand
agemoea2_mixed_integer_options. The environmental selection is ported from
the author's replication package (the code PlatEMO 4.15 ships), follows that
code where it departs from the 2019 and 2022 papers, and gives the same
survivors, scores and curvature as the MATLAB code run in Octave. It does not
round the objectives to 12 decimals as the author's code does.
agemoea2_optionsstarts from a Latin hypercube sample instead of the paper's
random population. On 3-objective DTLZ4 this reached the whole front on 10 of
20 seeds, against 4 of 20. - Added Modified WASF-GA, the evolutionary part of IRA-EMO (Saborido, Ruiz,
Luque and Miettinen 2019):ModifiedWASFGASelector,
ModifiedWASFGASelectorOptions,modified_wasfga_optionsand
modified_wasfga_mixed_integer_options. Parents and offspring are sorted into
fronts by an achievement scalarizing function with two reference points, an
aspiration point and a reservation point. They are given as a
DesirableRangesOptionspreference with the new method"Modified WASF-GA";
without a preference they are the ideal and nadir points estimated during the
run, as in Global WASF-GA. The defaults follow the authors' reference code
(population and weight vectors 100, 200 generations,rho0.001, a dominance
tournament). Where DESDEO departs from that code (normalization of the
reservation ASF, weights for three or more objectives, constraint handling) is
documented in the class docstring. - Added
SingleObjectiveConstrainedRankingSelectorwith
SingleObjectiveConstrainedRankingSelectorOptions, an environmental
selection operator for single-objective constrained problems. Besides the
constrained optimum it records what relaxing the constraints up to given
thresholds would gain, in five modes:baseline,relaxed,joint,
rankingandhypervolume. - Added MOEA/D (Zhang and Li 2007) and MOEA/D-DE (Li and Zhang 2009), shipped
disabled:MOEADSelector(Tchebycheff, PBI and weighted-sum aggregation),
MOEADSelectorOptions,moead_scalarize, the templatetemplate_moeadwith
TemplateMOEADOptions, and the factoriesmoead_options,moead_de_options
andmoead_mixed_integer_optionsare public, but constructing
MOEADSelectorraisesNotImplementedErroruntil the implementation has
been checked. - Added HypE (Bader and Zitzler 2011), shipped disabled:
HypESelector,
HypESelectorOptions,hype_optionsandhype_mixed_integer_optionsare
public, but constructingHypESelectorraisesNotImplementedError. - Added
comparisontoTournamentSelectionand
TournamentSelectionOptions."dominance"draws the winner uniformly from
the members that no other member dominates under constrained domination, and
ignores the published fitness. Defaults to"fitness", which keeps every
existing algorithm's behaviour.RouletteWheelSelectionOptionsaccepts only
"fitness".scalar_selector_constructortakes a new optionalproblem
argument, which a dominance tournament needs andemo_constructorpasses. - Added
base_vectortoDifferentialEvolutionCrossoverand
DifferentialEvolutionCrossoverOptions."target"adds the scaled difference
to the target itself,x_i + F * (x_r2 - x_r3), as MOEA/D-DE does (Li and
Zhang 2009). Defaults to"random"(DE/rand/1), which gives the same
offspring as before. - Added
dominance_matrix, the pairwise Pareto dominance relation of a
population, andconstrained_fronts, non-dominated sorting under the
constrained domination of Deb et al. (2002), to
desdeo.tools.non_dominated_sorting. - Exported
Template3OptionsandSMSEMOASelectorOptionsfromdesdeo.emo
(intemplatesandselection), and addedsms_emoa_optionsto the
__all__ofdesdeo.emo.options.algorithms. - Added the serialized templates
spea2,spea2_mixed_integer,agemoea2
andagemoea2_mixed_integertodatasets/emoTemplates, and the new options
toemoOptionsSchema.json. - Added
determine_problem_propertiesanddetermine_function_propertiesto
desdeo.problem.utils, also exported fromdesdeo.problem. They derive the
is_linear,is_convexandis_twice_differentiableflags of a problem's
analytical functions (objectives, constraints, extra and scalarization
functions) from their expressions. Linearity and convexity are checked with
cvxpy's DCP rules. Twice differentiability is ruled out by anyAbs,Max,
Min,CeilorFloor, including in referenced functions. The checks are
conservative: a convex function may be reported as not convex, but not the
reverse. An equality constraint counts as convex only when it is affine.
determine_function_propertiesupdates one function by symbol and leaves
the other flags untouched (#610). - Added
is_heuristic_solver, exported fromdesdeo.tools, and aheuristic
key on every entry ofavailable_solvers(Trueforscipy_deand
nevergrad), to mark solvers whose results are not guaranteed optimal
(#610). - Added a keyword-only
require_successtopayoff_table_method. When it is
set, a failed solve or a non-finite objective value, e.g. from an unbounded
objective, raisesValueErrorinstead of entering the table. Defaults to
False(#610). - Added
soft_constraint_violationstodesdeo.mcdm.cumulus. It returns how
much each soft constraint was relaxed in aSolverResults, by reading the
slack variables thatadd_soft_constraintadds (#610). - Added a
solver_optionsparameter tonautilus_init,nautilus_step,
nautili_init,nautili_step,nautili_all_steps, NAUTILI's
solve_reachable_boundsand NAUTILUS'ssolve_reachable_solution. As in the
other methods, the options are passed tosolverand ignored whensolver
isNone. Defaults toNone(#589). - Added a
scenario_modelparameter to CUMULUS'sgenerate_starting_point.
When it is given, the worst-case epigraph variables in the starting point are
tightened to the true worst case over the leaf scenarios, as
solve_sub_problemsalready does. Defaults toNone(#589). - Added the how-to guide "How to add a solution description to a problem"
(docs/howtoguides/solution_descriptions.md), which explains how to define a
SolutionDescriptionMetaDataand attach it to a problem. The web-GUI guide
now links to it (#619).
Changed
Constraint.is_linearnow defaults toFalseinstead ofTrue, so a
constraint is no longer assumed linear unless it says so. This can change
which solverguess_best_solverpicks for problems whose constraints do not
state their linearity (#610).- Setting
is_linear=Trueon anObjective,Constraint,ExtraFunctionor
ScalarizationFunctionnow also setsis_convexand
is_twice_differentiabletoTrue, whatever they were given as (#610). - An element of a problem may now reference earlier elements of its own kind:
an objective an earlier objective, an extra function, scalarization function
or constraint an earlier one of the same kind. This works in
PolarsEvaluator,SympyEvaluator,CVXPYEvaluatorand
GurobipyEvaluator. Kinds are evaluated in the order extra functions,
objectives, scalarization functions, constraints. A constraint may therefore
reference a scalarization function, but nothing may reference a constraint
(#589). SympyEvaluatornow raisesSympyEvaluatorErrorwhen an expression still
contains a symbol after substitution, typically a reference to an element
declared later. Previously such an expression was silently compiled into a
function that did not return a number. A scalarization function that
references a constraint is now rejected too (#589).build_combined_scenario_problemnow combines elements in the order they
are declared, and the kinds in evaluation order. Previously the order was not
deterministic. A per-leaf element may reference earlier per-leaf elements of
its own kind.ScenarioModelkeeps the declaration order of the scenario
tree, which sets the order of the leaf scenarios (#589).- The symbol maps returned by
build_combined_scenario_problemand
build_scenario_symbol_mapsno longer list a leaf that does not carry an
element. Previously such a leaf was mapped to the original symbol.
build_scenario_symbol_mapsnow collects symbols from the leaf scenario
problems, so elements introduced only by a scenario are included (#589). add_expected_value,add_conditional_value_at_risk,
add_worst_case_robust,add_single_objective_worst_case_regretand
add_weighted_scenariosnow raiseValueErrorwhen the aggregated symbol is
not defined in every leaf scenario. Previously they aggregated over the subset
of scenarios that defined it. They also raiseValueErrorwhen an aggregated
constraint references an element that is evaluated after the aggregate
(#589).- CUMULUS's
generate_starting_pointnow uses an augmentation coefficient
rhoof 0.01 unlessscalarization_optionssets one. Previously the
scalarization's default of 1e-6 was used, so starting points may differ
(#589). - CUMULUS now warns when worst-case epigraph variables cannot be tightened
(no constraint values in the solver results, or no per-leaf bound
constraint), and when a_t_variable does not match a known epigraph name.
Tightening now works for any aggregate prefix (#589). - The violation objective added by
add_soft_constraintis now flagged as
linear, convex and twice differentiable, withideal0 and a placeholder
nadirof 1. CUMULUS raises the nadir to the minimum total violation once
that is known, so the scalarizations are scaled over the actual range. This
also lets Ipopt solve soft-constrained smooth problems, which it refused
before (#610). - CUMULUS solutions computed with soft constraints no longer include the
internal violation objective inoptimal_objectives. Its slack variables
are still inoptimal_variables(#610). CVXPYSolver,ScipyMinimizeSolverandScipyDeSolvernow accept
options=Noneand fall back to their default options (#589).template2now raisesTypeErrorunless its selector publishes the fitness
that the mating selection picks parents by, that is, unless it derives from
_FitnessPublishingSelector(IBEA, NSGA-II, SPEA2, AGE-MOEA-II, Modified
WASF-GA andSingleObjectiveConstrainedRankingSelector). All shipped
configurations satisfy this.IBEASelectorandNSGA2Selectornow share their message handling with the
new selectors. Final populations are bit-identical to before. The
selected_individualsof IBEA'sSTATEmessage are now always row
positions in parents and offspring; before, the indicator branch gave a
boolean mask, taken over the feasible solutions only on constrained problems.
IBEASelectornow accepts only polars DataFrames; its list path did not work
before either.SimulatorEvaluatornow builds itsPolarsEvaluatoronce and reuses it,
instead of parsing every function of the problem on every call, and
PolarsEvaluatorselects the variables in one operation when the problem has
no tensor variables. Evaluating one solution at a time is faster (1.85 to
1.48 ms on DTLZ2, 6.0 to 4.1 ms on a 30-variable LZ09 problem); outputs are
unchanged.
Fixed
- Fixed NAUTILUS and NAUTILI ignoring solver options (#589).
- Fixed
CVXPYEvaluatorraisingAttributeErrorfor a scalar variable with
only a lower or only an upper bound. It usedcp.inf, which does not exist
(#613). - Fixed
add_conditional_value_at_riskbeing unbounded for maximized
objectives. For maximized objectives, CVaR now penalizes the lower tail
(z_s >= eta - f_s, CVaR =eta - 1/(1-alpha) * sum p_s z_s) and stays
maximized. Non-objective elements keep the minimization form (#613). - Fixed
add_stom_sf_diffandadd_stom_sf_nondiffdividing the augmentation
term by the uncorrected reference point. For maximized objectives this gave
wrong, possibly negative, augmentation weights, which could select a weakly
Pareto optimal solution. Results for problems with maximized objectives may
change (#613). - Fixed
add_asf_nondiffwithreference_in_aug=Trueappending a literal "1"
to the reference value of each minimized objective in the augmentation term
(10 became 101). Results with this option change (#613). - Fixed
build_combined_scenario_problemgiving variables added only through
scenario pools a single symbol shared by all leaves that carry them, and
leaving them out ofsymbol_maps["variables"]. They are now renamed per leaf
under the sameanticipation_stoprules as base problem variables (#613). - Fixed
ExtractandExcludein the polars evaluator returning list-typed
columns for one-dimensional tensors. They now return fixed-shape arrays, as
a plain tensor reference does, so arithmetic that mixes them with other
tensors works (#610). - Fixed clip repair (
desdeo.tools.utils.repair, used byClipRepairOptions)
transposing the offspring whenever there were as many offspring as decision
variables, e.g. 100 solutions on a 100-variable problem, and pairing a
variable with another variable's bounds when the bounds dictionaries listed
the variables in a different order than the offspring columns. Runs that hit
either case give different results now. - Fixed
IBEASelectorwith a population seeded with fewer solutions than
population_size, as in the later rounds of interactive SCORE bands
sessions. It returned the short population unchanged without a fitness, so
the mating tournament raised "The fitness is not set". It now keeps parents
and offspring until the population is full. - Fixed
plot_scoredrawing every SCORE band nearly black: the colors were
written asrgba()with matplotlib's 0 to 1 fractions, which Plotly reads on
a 0 to 255 scale.
Web API
Added
- Added
POST /session/activatewithActivateSessionRequest
(session_id, defaultNone). It makes one of the user's own interactive
sessions the active one, or clears the active session whensession_idis
None, and returns the session'sInteractiveSessionInfoornull.
Analysts and admins cannot activate other users' sessions; such a request
gets 404 (#625). - Added
active_session_idtoUserPublic(returned byGET /user_info),
defaultNone(#625). - Added
GET /method/cumulus/scenario-availability, which returns a
CumulusScenarioAvailabilityResponse(available,base_problem_id,
scenario_model_id,objective_symbols,applied_measures). It tells
whether a problem, or the problem it was combined from, has a scenario
model, and which uncertainty measures are already applied (#610). - Added
POST /method/cumulus/apply-scenario-measures. It takes a
CumulusInitializationRequestwith non-emptyuncertainty_measures,
always builds a new combined scenario problem from the base problem, and
starts CUMULUS on it, even when CUMULUS has already been initialized. It
returns aCumulusInitializationResponse(#610). - Added
GET /method/cumulus/objective-constraint, which returns the soft
objective constraints in effect as a
CumulusActiveObjectiveConstraintsResponse(a list of
CumulusObjectiveConstraintInfo:name,symbol,cons_type,func)
(#610). - Added
current_solution_feasible(defaultTrue) andproblem_deleted
(defaultFalse) toCumulusModificationResponseand
CumulusModificationState, returned byPOST /method/cumulus/modify-problem
andGET /method/cumulus/modify-problem/status/{state_id}(#610). - Added
SolutionReferenceResponseLite, which isSolutionReferenceResponse
withoutvariable_values(#610). POST /method/cumulus/solvenow warns which soft objective constraints
could not be met and by how much they were relaxed (#610).
Changed
- The saved solutions returned by the NIMBUS, XNIMBUS and CUMULUS endpoints
now contain only those saved in the user's active session. A save belongs to
the session of the state that saved it, or else of the state it came from.
Previously all of the user's saves for the problem were listed (#625). POST /solution-description/getnow describes saved CUMULUS solutions
(CumulusSaveState) in the same way as saved NIMBUS solutions; previously it
returnedavailable=false. For both, the saved objective values are now
available to the description along with the variables, and
solution.solution_indexselects the saved solution. Previously the first
one was always used (#619).POST /method/cumulus/modify-problemnow checks in the background that the
modified problem is feasible and bounded, and discards it otherwise. It
first looks for a current solution that satisfies the changed constraints,
then tries one solve that minimizes the violation of the changed
constraints, then runs the payoff table withrequire_success=True. A
modification that fails, or whose checks cannot be completed, has its
problem deleted, and the status endpoint reportsproblem_deletedand the
reason inerror. The checks are conservative. With a heuristic solver, any
positive violation, or any variable without finite bounds, gets the
modification rejected. Changing variables, constants, objectives or extra
functions of a problem with simulator or surrogate constraints is always
rejected. The modified problem staysis_temporaryuntil it passes.
Previously, a payoff table failure was only reported inerrorand the
problem was kept (#610).- Objective constraints in CUMULUS are now only soft. Hard bounds go through
POST /method/cumulus/modify-problem.
POST /method/cumulus/objective-constraintno longer takes
hard_constraints.hard_constraint_idsis removed from
CumulusObjectiveConstraintRequest,CumulusObjectiveConstraintResponse,
CumulusInitializationResponseandCumulusObjectiveConstraintState
(#610). - The
current_solutions,saved_solutionsandall_solutionslists of the
CUMULUS responses (CumulusClassificationResponse,
CumulusInitializationResponse,CumulusIntermediateSolutionResponse, and
saved_solutionsandall_solutionsofCumulusFinalizeResponse) are now
SolutionReferenceResponseLiteand no longer carryvariable_values. This
keeps responses small.CumulusFinalizeResponse.final_solutionstill
carries them (#610). - Constraints sent to
POST /method/cumulus/objective-constraintor added
throughProblemModificationthat state none ofis_linear,is_convex
andis_twice_differentiablenow get those flags derived from their
expression, against the problem they are added to. Before, they all
defaulted toFalse, which could push the whole problem onto a
non-differentiable solver. Flags stated in the request are kept (#610). - The Cumulonimbus failure warning of
POST /method/cumulus/solvenow
explains that the reference point keeps some objectives from getting worse
(#610).
Fixed
- Fixed
POST /method/cumulus/get-or-initializereturning the saved solutions
as the current ones when the latest CUMULUS state was a save (#610). - Fixed deleting a session that is its owner's active session leaving a
danglingactive_session_id; the active session is now cleared (#625). - Fixed
ScenarioModelDBround-trips scrambling scenario pools: indices into
pools that mix scalar and tensor constants or variables now resolve to the
same elements after reload, and pool relationships are loaded in insertion
order (#613).
Web GUI
Added
- Added the "Add uncertainty measures" action to the CUMULUS menu. It is
enabled when the problem has scenarios, and builds or rebuilds the combined
scenario problem with a new set of measures at any point in the method. The
measures already applied are preselected (#610). - Added a
requiredoption to the input dialog, which disables confirming a
blank value. Saving a CUMULUS solution now requires a name (#610).
Changed
- Selecting a session (or "None") on the Sessions page now activates it in the
backend, so methods resume and record their states in it. Previously only a
browser-side store changed. Creating a session for oneself also selects it,
and only one's own sessions can be selected (#625). - The CUMULUS objective constraint dialog now offers only soft
<=0and=0
constraints. The hard options are gone. The dialog opens on the constraints
in effect, loaded from the backend, and applying an empty list clears them
(#610). - CUMULUS error and warning alerts no longer disappear after five seconds.
Alerts now have a close button whenever closing has an effect, and keep the
line breaks of their message (#610). - Updated
sveltekit-superformsto 3.1.0 andformsnapto 2.1.0, which need
Svelte 5.57 or later, and the patch and minor versions of the other
dependencies.webui/package-lock.jsonis in sync withpackage.jsonagain,
sonpm ciworks.
Removed
- Removed the inactive "Modify problem" item from the CUMULUS menu (#610).
Fixed
- Fixed the problems page hiding problems shared with non-analyst users
through a group. The owner filter now applies only to analysts and admins
(#613). - Fixed the validated text box in the preferences sidebar overwriting the
value while it was being typed with the parent's formatted echo (e.g.2
becoming2.00) (#610).
Security
- Updated
mathliveto 0.110.0, which fixes a cross-site scripting
vulnerability: LaTeX text-mode content (\text{},\mbox{}) was inserted
into the rendered HTML and MathML without escaping, so input such as
\text{<img src=x onerror=...>}could run JavaScript. mathlive now brings
its own@cortex-js/compute-engine0.58.0; the web GUI's own use of the
compute engine stays on 0.30.2.