Repository navigation
DESDEO 2.7.0
[2.7.0] - 25.8.2026
Highlights
This release completes the support for scenario-based optimization that was
started in 2.5.0. A scenario describes what the problem might look like in one
plausible future, and a ScenarioModel collects such scenarios, the tree
describing how they follow one another, and their probabilities. Scenario
problems can now be solved interactively: CUMULUS (#550) is a classification
based method built for them, and it is available through the core logic, the
Web API and the Web GUI. It comes with soft constraints, worst case regret and
the stochastic and robust aggregations needed to reduce a scenario problem to
one a solver can handle.
Scenarios are explained in the documentation at
https://desdeo.readthedocs.io/en/latest/explanation/scenarios/, which walks
through building a ScenarioModel and solving it. The same material is
available as a notebook in notebooks/scenarios.ipynb.
Core logic
Added
- Added the CUMULUS method (
desdeo/mcdm/cumulus.py): a classification-based
interactive method for scenario-based problems, with
generate_starting_point,infer_classifications,solve_sub_problems,
solve_intermediate_solutions, theCumulusScalarizationenum and
CumulusError(#550). - Added
add_cumulonimbus_diffandadd_asf_partial_nondiffto
desdeo/tools/partial_scalarization.py, and
add_single_objective_worst_case_regrettodesdeo/tools/robust.py(#550). - Added
add_soft_constrainttodesdeo/problem/utils.py, which turns a
constraint into a soft one by introducing a slack variable, and rejects
symbols already present in the problem (#550). - Added
build_scenario_symbol_maps,resolve_elemand
append_aggregated_elemtodesdeo/tools/scenarios.py, which derive the
per-symbol pool metadata that the stochastic and robust aggregations need
from an already built combined scenario problem (#550). - Added
Problem.get_symbol_type_map, which maps every named symbol to the
Problemfield it belongs to. - Added SMS-EMOA:
SMSEMOASelector(desdeo/emo/operators/selection.py),
SMSEMOASelectorOptions, and thesms_emoa_optionsand
sms_emoa_mixed_integer_optionspresets. Hypervolume contributions are
computed with moocore (#556). - Added
template3(desdeo/emo/methods/templates.py) andTemplate3Options,
a steady-state loop that produces one offspring per iteration, which SMS-EMOA
follows. - Added XLEMOO: the
LearningModeOperator
(desdeo/emo/operators/learning_mode.py), thetemplate_xlemooloop that
alternates Darwinian and Learning phases,TemplateXLEMOOOptions, and the
xlemoo_optionspreset. The scalarization used with a reference point is
selected through theXLEMOO_SCALARIZATIONSdispatch table (ASF, STOM and
GUESS, differentiable and non-differentiable). - Added the
desdeo/explanationspackage withrules.py: rule extraction from
a trained rule classifier (extract_skoped_rules), sampling from rules
(instantiate_from_rules,instantiate_from_ruleset), bound parsing
(parse_rules_to_variable_bounds,complete_bounds_from_population) and
reporting (format_rule_summary,format_rule_table). Sampling accepts an
optional NumPy generator for reproducibility. - Added
ElitistSelection(desdeo/emo/operators/scalar_selection.py) and
ElitistSelectionOptions: keeps the topwinner_sizeindividuals by a single
output column. - Added Riesz s-energy reference vector generation,
create_s_energyin
desdeo/tools/reference_vectors.py.ReferenceVectorOptionsalready accepted
creation_type="s_energy"but the selector raisedNotImplementedError. The
design is delegated to pymoo, cached on (objectives, vectors, seed), and
_ensure_axis_vectorsguarantees that every axis direction is present. Unlike
the simplex lattice, this honours the requested number of vectors exactly, so
the population size of a decomposition-based algorithm is no longer rounded
down to the nearest binomial count. - Added
CompositeCrossoverandCompositeCrossoverOptions, which apply a list
of crossover operators. - Added a bounded (truncated) variant of simulated binary crossover, selected
with thetruncatedflag, and auniform_xover_probabilityparameter that
applies uniform crossover to the variables already selected for crossover. - Added
pair_xover_probabilityto simulated binary crossover: the per-pair
probabilityp_creported in the literature, separate from the per-variable
probability of Deb and Agrawal. - Added constraint handling to the NSGA-II and IBEA selectors. NSGA-II uses the
constrained domination of Deb, Pratap, Agarwal and Meyarivan (2002), IBEA uses
feasibility-first, mirroringNSGA3Selector. Added the shared
total_constraint_violationhelper. - Added a
distance_pargument todistance_indicators, separating the order
of the generalized mean used for averaging from the point-to-point metric. - Added
project_solution(desdeo/tools/project_solution.py), which projects a
solution onto the Pareto front to test for optimality. - Added an optional
seedfield to the generator options, for using a generator
seed that differs from the template seed. - Added the test problems CTP1 to CTP8 (
ctp_problems.py), car side impact
(car_side_impact_problem.py), water management
(water_management_problem.py), vehicle crashworthiness
(vehicle_crashworthiness_problem.py) and
summer_cabin_battery_robust_ev_problem, with tests. - Added the wrapper functions
re21,re34,re37,re41andre61to
re_problem.pyfor test problems already implemented elsewhere. - Added
desdeo/emo/options/generate_templates.py, which regenerates the
serialized option templates underdatasets/emoTemplates, together with the
newemoOptionsSchema.json,xlemoo.jsonand mixed-integer templates for
IBEA, NSGA-III and RVEA.
Changed
- Renamed the method-specific exports of
desdeo.mcdmto carry a method prefix:
generate_starting_point,infer_classifications,solve_sub_problemsand
solve_intermediate_solutionsare nownimbus_*, alongside the new
cumulus_*counterparts. Importing the unprefixed names fromdesdeo.mcdm
no longer works; importing them fromdesdeo.mcdm.nimbusstill does (#550). TournamentSelectionno longer uses its seed as the switch between the
deterministic and the stochastic selection rule.seednow only seeds and
defaults to 0, and the newstochasticflag chooses the rule.
RouletteWheelSelectionOptionssets it. Every options-built algorithm now
reproduces fromtemplate.seedalone; NSGA-II and IBEA previously could not.
Callers that passed a seed to obtain roulette-wheel behaviour need
stochastic=True.- The per-variable crossover probability of simulated binary crossover now
defaults to 0.5 instead of 1.0, following Deb and Agrawal (1995). The
algorithm factories put the per-pairp_cinpair_xover_probability. nsga2_optionsandibea_optionsnow usemutation_probability=None
(1/n_variables) rather than a hardcoded 0.01, which was only equivalent for a
100-variable problem.nsga2_optionsusesClipRepair, as Deb's reference
code clamps offspring onto the variable bounds.ClipRepairis now the default repair operator in the algorithm presets that
solve continuous problems, and it fills NaN values with the midpoint of the
variable bounds. The bounded exponential crossover operator is known to
produce NaN values. The repair implementation now operates on NumPy arrays.- NSGA-II now publishes
SELECTED_FITNESSas higher-is-better. Everything
downstream reads it that way: the mating tournament takes an argmax, and
roulette-wheel selection treats it as a positive weight. The published value
is reflected about the worst attainable value, which preserves the ordering
and keeps every value strictly positive. On DTLZ2 (m=3, n=12) at 20000
evaluations, the median IGD+ over 5 seeds improves from 0.0437 to 0.0393. max_generationsin the mutation options is now optional and defaults to the
budget reported by the terminator, so the decay schedule cannot disagree with
the termination criterion.EMOEvaluatornow builds its backingSimulatorEvaluatoronce in
__init__instead of constructing a new one on everyevaluatecall. For a
problem with surrogate objectives, that construction reloads every surrogate
from disk. Measured on a 2000-evaluation NSGA-III run against three 124 MB
surrogates: 9.47 s before, 2.99 s after.LHSGeneratornow seedsscipy.stats.qmc.LatinHypercubethrough a NumPy
generator.BaseTerminatorno longer subscribes to the generator's evaluation counts,
which were counted twice for the initial population.- The default scale of the bounded exponential crossover changed from 1.0 to
0.1. Blend-alpha crossover gainedrepeatsandsample_each_component
parameters, and the crossover probability was removed from local crossover. distance_indicatorsnow documents and computesigd_pandgd_pas the
generalized (power) mean of order p, matching moocore and Schuetze et al.
These coincide withigdandgdwhen p equals 1.fast_non_dominated_sort_indicesreturnslist[list[int]]instead of
list[np.ndarray].- The gurobipy result parser now inspects the model status before reading any
values, and returns an unsuccessfulSolverResultswith NaN entries when the
model is infeasible, unbounded or otherwise not solved to optimality. set_initial_guess(SciPy interface) now handles variables with only one
bound defined, or neither, instead of failing on the missing bound.- The unbounded
_alphavariable in the differentiable group scalarizations is
now declared withlowerbound=Noneandupperbound=Noneinstead of infinite
bounds. - Renamed
mixed_variable_dimenrions_problem.pyto
mixed_variable_dimensions_problem.py. - Cleaned up the selection module: added missing docstrings, removed leftover
prints, renamed uppercase variables and named magic values. - The docstring return types of
Problem.get_ideal_pointand
Problem.get_nadir_pointno longer claim the result can beNone.
Removed
- Removed
ASFSelectorandASFSelectorOptions, superseded by the more general
ElitistSelection, which ranks by any single output column rather than an
achievement scalarizing function specifically.
Fixed
- Fixed RVEA selecting the last individual of the population for every reference
vector with no associated solution._rvea_selectionleft the running best
index at -1 and wroteselection[-1] = True. Empty reference vectors become
more common as the number of objectives grows. The constrained selector had
the same defect in its fallback branch, which tracks the least infeasible
solution, and constrained runs meet it constantly. - Fixed the NSGA-II crowding distance raising
ZeroDivisionErroron a constant
objective column. Numba does not return infinity for that division the way
NumPy does, so the run died. Constant columns are now skipped, which also
stops two arbitrary solutions from being awarded an infinite crowding
distance. - Fixed
NSGA3Selectorselecting an empty population when the number of
reference vectors exceeds the population size, for example with multiple
preferred solutions, which crashed the next generation. All available
solutions are now kept when the combined population is smaller than the
number of survivors. - Fixed tensor constants not being updated correctly across scenarios (#573).
- Fixed bounded polynomial mutation producing NaN for variables whose bounds
coincide, and fixed the population being transposed when it has as many
individuals as decision variables, by statingorient="row"on every
pl.from_numpyin the mutation module. - Fixed a type check in
GurobipyEvaluatorthat testedgp.GenExpragainst
intinstead of testing the expression againstgp.GenExpr, so
general expressions were never rejected. - Fixed the crossover operators to work with SMS-EMOA.
- Fixed the blend-alpha crossover operator.
Web API
Added
- Added the CUMULUS router (
desdeo/api/routers/cumulus.py, prefix
/method/cumulus) with the endpoints/solve,/initialize,
/get-or-initialize,/save,/delete_save,/intermediate,
/objective-constraint,/modify-problem,/modify-problem/status/{state_id}
and/finalize(#550). - Added the CUMULUS request, response and state models
(desdeo/api/models/cumulus.py) and the state kindscumulus.solve_candidates,
cumulus.save_solutions,cumulus.initialize,cumulus.final,
cumulus.modifyandcumulus.objective_constraint(#550). - Added
ProblemModification,SoftConstraintSpecandUncertaintyMeasureSpec
models, andapply_problem_modificationsinrouters/utils.py, which applies
soft constraints and uncertainty measures to a problem (#550). - Added the solution description router
(desdeo/api/routers/solution_description.py) with/getand
/update_metadata, backed by the newSolutionDescriptionMetaDataproblem
metadata model and itsDescriptionPartentries. A part is either literal
text, a symbol looked up from the solver results, or a MathJSON expression
evaluated against them (#550). - Added
validate_description_partsinrouters/solution_description.py, which
checks a description template on its own, so callers other than
/update_metadatacan validate one (#578). - Added
get_solver_results_atandcopy_problem_metadatato
routers/utils.py. - Added
desdeo/api/db_init_gdm.pyanddesdeo/api/db_init_summer_cabin.py,
which initialize a database for group decision making and for the summer cabin
EV problem with its solution description metadata. - Added
desdeo/api/tests/test_routes.pyand
desdeo/api/tests/test_scenario_tensor_constants.py, and extended the problem
metadata tests.
Changed
GET /problem/allandGET /problem/all_infonow also return the problems
reachable through the groups a decision maker owns or belongs to, instead of
only the problems the user owns. Analysts and admins are unaffected.- Moved
filter_duplicates,collect_saved_solutionsand
collect_all_solutionsfromrouters/nimbus.pytorouters/utils.py. The
NIMBUS and XNIMBUS routers now import them from there. - The group decision making websocket endpoint keeps its database session open
while the group manager is resolved and the connection is registered, and
closes it afterwards. It was closed before the manager needed it. - Raised the debug access and refresh token lifetimes in
config.tomlfrom 15
and 30 minutes to 480 minutes, for development and testing. - Solution descriptions expose tensor solver results element by element, as
x_1,x_2andx_1_2for nested tensors, instead of collapsing a tensor to
its first element, so a description part can aggregate over one, for example
the maximum over a schedule (#578). - The problem's constants are available to solution descriptions, so a part can
refer top_1rather than having that value written into the expression. The
solution's own values take precedence over the constants (#578). - Solution description expressions substitute the known values into the MathJSON
tree before it is parsed, instead of parsing symbolically and then
substituting. Rendering a part that aggregates over a few hundred symbols went
from about 52 s to about 10 ms (#578). /update_metadatarejects description parts referring to symbols the problem
does not have. Such a part previously failed only when a description was
requested (#578).
Web GUI
Added
- Added the CUMULUS method view (
routes/interactive_methods/CUMULUS/) with its
page, layout, handlers and types, and an entry in the method selection list.
It supports classification, saving and removing solutions, intermediate
solutions, objective constraints, scenario-based initialization and problem
modification (#550). - Added a solution description panel to NIMBUS, shown for problems that carry
solution description metadata. - Added a cluster band table for SCORE bands
(components/custom/score-bands-table/solution-table.svelte) showing the
per-objective range and median of each band. - Added a
footerExtrasnippet to the preferences sidebar, and made
numSolutionsoptional. - Added a Playwright authentication setup step and a multi-user GDM SCORE bands
specification, together with thedev:gdm-scorescript.
Changed
- Reworked the GDM SCORE bands page: learning, consensus reaching and decision
phases, vote synchronization and iteration polling, per-cluster vote counts
and percentages, per-axis agreement labels, sub-bands and notes, a separate
layout for the group owner, and an instruction box. - The SCORE bands visualization now sizes itself from its container and redraws
through aResizeObserver, instead of a fixed 800 by 600 canvas. - Regenerated the orval clients for the new and changed endpoints.
- The orval configuration reads the API base URL and the OpenAPI URL from the
environment, with localhost defaults. - Replaced the deprecated vitest
workspaceoption withprojects, and split
the Playwright configuration intosetup,gdm-scoreande2eprojects.
Documentation
Added
- Added a crossover operators explanation notebook
(docs/explanation/crossover_operators.ipynb) covering every crossover
operator in the framework. - Added a how-to guide on solving constrained problems with evolutionary
algorithms (docs/howtoguides/ea_constraints.ipynb). - Added a how-to guide on the XLEMOO method (
docs/howtoguides/xlemoo.ipynb),
which executes deterministically.
Changed
- Shortened the JOSS paper to at or under 1800 words, as requested by the
handling editor during pre-review. - Updated the crossover row of the features table to list every available
operator, and linked the crossover explanation. - Added the Zenodo DOI badge to
README.mdand the DOI toCITATION.cff, and
corrected the Read the Docs badge version. - Added the INDENSYS project (373063) to the funding list in
README.md.
Tooling, CI, and deployment
Added
- Added
imodelsas a dependency, used by the XLEMOO learning mode for rule
extraction. - Added the
cumuluspytest marker. - Added ruff per-file ignores for notebooks (
printstatements, module and
function docstrings, magic values in comparisons).
Changed
- Replaced
psycopg2withpsycopg2-binaryin theservergroup, and
restrictedgriffeto a mkdocs-compatible version (<2). - Disabled codecov comments on pull requests.
- Bumped the web GUI dependencies:
viteto 8.0.16,@sveltejs/kitto 2.65.2,
@sveltejs/vite-plugin-svelteto 7.1.2,vitestand its packages to 4.1.9,
the Storybook packages to 10.4.6,@tailwindcss/viteto 4.3.1,orvalto
8.18.0 andjs-yamlto 4.2.0.