Repository navigation
Description
I have collected my feedback related to the paper in this issue. My feedback is based on the pdf built on commit 694a395 . Line numbers (L) refer to the JOSS pdf draft. Review issue in JOSS: openjournals/joss-reviews#11403
General comments
Sadat, Takahashi & Pearce (2023), Energy Conversion and Management 298:117686, seems to be already a full software paper about SAMA ("this paper introduces and validates SAMA"). It describes many of the same features as in the current contribution, and the HOMER Pro validation. Much of the present manuscript re-presents this material, including the HOMER Pro pricing figures and the tool survey used as the State of the Field.
The repository history shows substantial work since then: the EV energy management with V2H/V2G (EMS_EV.py), heat pump models (Bosch/Goodman), the ADE and ABC optimizers and GWO in Python, the multi-cashflow analysis, and the pip-installable package with CLI and YAML configuration. Several of these are listed as future work in Section 5.4 of the 2023 paper. However, the JOSS manuscript never states what is new relative to 2023; it calls the 2023 paper "the primary paper [that] describes the core platform". I ask the authors to state explicitly which functionality is new since Sadat et al. (2023), to frame the JOSS paper around that contribution, and to present the rest as prior work.
Moreover, the claim that SAMA "has been validated against HOMER Pro across multiple U.S. climate zones" (L23–24, L31–32) refers to the 2023 validation of the earlier code base, as I understand it. Since then the dispatch engine has had its energy balance corrected (as the paper itself mentions), and the EV and heat pump modules have been added. Has the HOMER Pro comparison been re-run on the current version? This was not clear to me. If not, the claim should be qualified.
The title and the name ("Multi-Objective Advisor") present SAMA as a multi-objective optimization platform, but the implementation does not support this. In src/samapy/core/Fitness.py the objective is a fixed weighted sum:
objective = NPC_scale * NPC + EM_scale * EM * LEM # NPC_scale = 1e-5, EM_scale = 1e2EM is a 0/1 switch that defaults to 0 (cost only). The scaling weights are hard-coded (the code comment reads "adjust based on your typical values") and cannot be set through the configuration. No Pareto front or set of trade-off solutions is produced, and all four optimizers are single-objective. This is a scalarized single-objective problem with fixed, hidden weights. Either the multi-objective capability should be developed (e.g., Pareto front approximation, user-specified preferences, support for choosing among trade-offs), or the title and framing should be revised to match what the software does. I must also point out that using weighted sums to scalarize a problem will not let an optimizer find unsupported solutions. And with fixed weights, only one solution will be generated in any case. The choice of weighted sums, the fixed weights, and why the weights are hidden in the code, should be well justified and documented. As it stands, SAMA is not a multi-objective optimization platform in any meaningful sense.
Summary
- L8-9 ("Solar Alone Multi-Objective Advisor (SAMA) is an open-source platform for the planning, design, and operation optimization…"): This conflicts with the title, which implies a multi-objective optimization platform, but the opening tells a different story. What is a "multi-objective advisor"? I do not understand. Relatedly, at L15-16 ("may optionally include a second objective"): this reads oddly given the title says "Multi-Objective Optimization", because it implies that having more than one objective is optional. See the general comment on multi-objective optimization above.
- L17-19: Is this meant to be decision-support software, or planning software in general? I am not sure. Given the title, I would expect the conflicting nature of the objectives typically considered in this domain to be described at some level. What motivates the multi-objective optimization approach? This is not clear.
- L19 ("the examples in the documentation"): Consider linking to the documentation here.
- L23 ("HOMER Pro"): HOMER Pro appears here without introduction or citation; it is only explained at L43. Introduce and cite it at first mention.
- L27-29 and L104-105 (the four metaheuristics, "enabling algorithmic comparison within a consistent evaluation framework"): These are single-objective algorithms, not multi-objective variants. There are plenty of mature open-source implementations of them (e.g., pymoo, DEAP, SciPy's
differential_evolution), so I wonder why they are highlighted as contributions of the software. Re-implementing existing tools should be well motivated, and so should the inclusion of four of them. Why not use an established optimization library for this layer?
Statement of Need
-
L35-38: There is plenty of open-source optimization software, including multi-objective optimization software. Based on the manuscript as it stands, I do not understand what SAMA does that cannot be achieved with existing libraries. I appreciate that generic optimization libraries do not provide microgrid component models, dispatch, or tariff calculations; if that is SAMA's value, the paper should say so clearly and compare SAMA against domain tools (see below) rather than emphasize the optimizers.
-
L38-41 ("simultaneous optimization over competing objectives (minimizing lifecycle cost, meeting reliability constraints, maximizing renewable penetration)"): I would then expect SAMA to provide the necessary support for practitioners to select among the compromises. In the implementation, only cost is an objective by default; reliability and renewable fraction are penalty constraints.
-
L41-42 ("Without appropriate software…"): I am not sure what "appropriate" means here. Based on the description so far, these problems could be modeled with existing multi-objective optimization software. What makes existing software inappropriate?
-
L43-53: So is the main motivation for SAMA to be a free/libre alternative to HOMER Pro, providing a similar user experience and tooling? If so, this should be at the forefront of the paper, as it is the best motivation I have seen in the manuscript.
-
L54-59: I do not understand why contributing these features to an existing alternative was out of the question. The JOSS review checklist asks: "If related tools exist, do they provide a clear 'build vs. contribute' justification explaining their unique scholarly contribution and why alternatives are insufficient?" This is not explained.
-
L54-56 ("Open-source alternatives…"): Of the tools listed, only SAM and PVWatts are open source; PVsyst and RETScreen are not. More importantly, relevant open-source tools are missing:
- REopt (NatLabRockies/REopt.jl, REopt_API) sizes PV, wind, battery and generator systems behind the meter, with utility tariffs (including tiered and TOU rates), emissions constraints, and heat pumps. I would expect a comparison here.
- SESAM-Polimi/MicroGridsPy-SESAM (microgrid sizing).
- oemof/oemof-solph, PyPSA/PyPSA, calliope-project/calliope and OSeMOSYS/OSeMOSYS are general energy-system optimization frameworks that can be applied at microgrid scale.
- pvlib/pvlib-python simulates PV performance.
The landscape of similar open-source software is in fact quite rich, and some of these projects have thousands of commits, many contributors, and active development. The claims that "none implement the complex utility tariff structures" and "none support EVs or heat pumps" (L57–59) do not hold as stated. At this point, I would expect the need for SAMA to be very well justified.
State of the Field
- L65-68: The section relies on the survey from Sadat et al. (2023), which predates and omits the open-source tools listed above. Please update it.
- L93-105 ("SAMA's key differentiators within this landscape"): Does this mean that no other open-source energy-system tool offers these features? REopt, for example, covers much of (2), (4) and (5). The EV energy management (3) does appear to be distinctive; if so, it could be a strong point to build the paper around.
Software Design
- L106-171: This section meets the JOSS requirements very poorly: "Does the paper include a 'software design' section that explains the trade-offs weighed, the design/architecture chosen, and why it matters? Is the content compelling and does it demonstrate meaningful design thinking?" It largely lists features and models without discussing the trade-offs behind them, for example metaheuristics versus mathematical programming (as used by REopt), or Numba JIT compilation versus the NumPy vectorization also mentioned in the paper. As a reader, this is where I expected to find the most important motivation for a new library instead of contributing to established ones; at the moment, I am not convinced this library is justified. The section also makes no reference to multi-objective optimization, which poses its own software challenges, especially if any decision-support aspects are to be considered.
Research Impact Statement
- L172-188: The impact should be stated clearly in terms of which version of the software it comes from: what impact stems from the current code, and what stems from the version described in Sadat et al. (2023)? Going by the repository history, the EV/V2G management was added in October 2025 and the heat pump models and pip package in March 2026, while most of the six cited publications appeared before then. As written, the statement credits the current package with impact that largely belongs to the earlier software. Please indicate, for each publication, which version and features of SAMA were used, and what evidence of use (if any) exists for the functionality that is new since 2023.
Minor
- L120: "chemistryies" -> "chemistries".
- L133: "In each of annual hours" -> e.g., "In each hour of the year".
Closing remarks
SAMA does have unique contributions since the original 2023 paper. In its current state, however, the paper is a mess: it mixes material already published in 2023 with the new work, does not compare SAMA against the relevant open-source tools, and does not justify the design choices made. The paper should be reframed to clearly distinguish itself from its predecessor and to highlight its novelty.
Most importantly, in its current state the name of the framework and the title of the paper are misleading in their inclusion of the term "multi-objective optimization". This must be corrected, either by revising the title and framing, or by actually adding multi-objective optimization to the framework.
I will be happy to clarify on any of my point and answer any follow up questions. I will have a more through separate look at the repository a bit later, as the manuscript already took me almost a whole day to check.
Activity
Add files via upload
Add files via upload
Add files via upload
Add files via upload
Add files via upload
Add files via upload
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: multi-objective optimization update (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
feat: add demand charges and bi-facial PV modules (#14)
chore(release): prepare 1.0.7 and revise paper (#14)
fix(cli): write console output as UTF-8 on Windows (#14)
feat(cli): ask about multi-objective mode, bi-facial PV, demand and m…
fix(cli): read input files from a folder chosen in the wizard instead…
docs(paper): cite HOMER Pro at first mention (#14)
Sas1997 commentedon Nov 3, 2026
Dear @gialmisi,
Thank you for this thorough and constructive review. It led to substantial changes in both the paper and the software. Below we respond to each point in order. Line numbers in your review refer to the draft at commit 694a395; since the paper has been rewritten, we refer to its sections instead. All software changes are in the current release, SAMAPy 1.0.10 on PyPI, and the revised paper is in
paper.mdon the main branch.General comments
1. Overlap with the 2023 paper.
The 2023 paper in Energy Conversion and Management described the core methods of an earlier version: PV, wind, battery, generator and grid components, PSO and seven electricity tariffs. The JOSS paper is now framed around the software as it is today. The second paragraph of the Summary states what the 2023 paper covered and lists what has been added since, with dates:
The Statement of Need, State of the Field and Software Design sections now discuss these capabilities rather than repeating the 2023 material.
2. HOMER Pro validation.
The comparison was not re-run on the current version, so we qualified the claim. The Summary now says that the comparison with HOMER Pro covers the 2023 code. The current code is checked by the automated test suite: inputs, the energy balance of the dispatch, the optimizers against known optima, the multi-objective mode against an analytical Pareto front, and the command-line workflow.
3. Multi-objective framing.
You were right that the earlier objective was a scalarized single objective with fixed weights. We addressed this in the software and in the text:
samapy-run -m multi, oroptimization_mode: multiin the configuration file, approximates the Pareto front of two or more objectives (NPC, LCOE, levelized emissions, LPSP and renewable fraction) with NSGA-II from pymoo.NPC_weightandEM_weightare set in the configuration file, and the Software Design section explains the default weights and why a fixed weighted sum cannot reach non-convex parts of a trade-off.Summary
Statement of Need
State of the Field
L65–68. The survey has been rewritten and now includes the tools above.
L93–105. We agree that EV energy management is SAMA's most distinctive feature, and the paper now says so. A paragraph describes the rule-based V2H/V2G controller that is embedded in the sizing loop:
The section also includes a dedicated paragraph differentiating SAMA from REopt.jl, the closest open-source counterpart.
Software Design
The section now discusses design trade-offs rather than listing features:
benchmarks/fitness_timing.py, and the paper states the costs of this choice.Research Impact Statement
The statement now ties each study to the software version and features it used:
Minor comments
Further changes to the software
While addressing the review we also:
The documentation describes all new features and configuration keys.
We would welcome your further review of the repository. Thank you again for your time and detailed feedback.
Best regards,
Ali
feat(moo): report unsupported designs, add multi-objective examples, …
docs: add multi-objective example figures (#14)