In this article
The documented integrality array identifies integer decision variables, using only integer values between their bounds. If an integral variable's interval contains no integer, the request is invalid. Integral variables are not changed during polishing, so the continuous refinement stage does not represent another unrestricted search over the complete mixed space. These rules differ from allowing arbitrary real candidates and rounding at the boundary of the simulator. The effective admissible.
A mixed discrete-and-continuous parameter search needs to preserve which variables are truly integral. SciPy differential_evolution provides an integrality contract that also affects polishing. Rounding a final continuous result afterward is a different optimization problem and can produce a configuration the scientific objective never evaluated under the intended discrete constraints.
The scientific interface
The documented integrality array identifies integer decision variables, using only integer values between their bounds. If an integral variable’s interval contains no integer, the request is invalid. Integral variables are not changed during polishing, so the continuous refinement stage does not represent another unrestricted search over the complete mixed space. These rules differ from allowing arbitrary real candidates and rounding at the boundary of the simulator. The effective admissible set is part of the problem definition, not a cosmetic output-format choice.
Implementation details
Record the variable schema, integrality mask and bounds alongside the objective. Validate that each integral interval has admissible values before launching an expensive simulator. Keep pre-polish and final candidates under the selected API’s documented scope, and evaluate the actual final configuration rather than a reformatted display copy. Do not claim global optimality from the presence of integer constraints or polishing. Preserve any deliberate alternative rounding policy as a different method with its own evaluation evidence, not a hidden compatibility fix applied after the search result is reported.
A constructed validation case
Construct a harmless objective with one discrete and one continuous design variable and an independently inspectable admissible set. Observe candidates under the chosen mixed-domain configuration, then compare with a separately labeled continuous-search-and-round baseline. Add an interval containing no admissible integer and verify explicit validation failure. Acceptance requires correct variable-domain handling and a result tied to its actually evaluated configuration. It does not establish that polishing explored alternative integer assignments or that the returned design is best among every possible scientific configuration.
Numerical and data limits
Mixed-domain correctness is separate from simulator fidelity, reproducible stochastic search and surrogate prediction quality. Evaluate those properties under their own protocols. This guide isolates whether the optimization request and final scientific label refer to the same admissible design variables.
Primary references
SciPy optimize.differential_evolution API; SciPy optimization guide.
This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.
Related reading
A GPU inference benchmark you can trust; Tensor axes in a language model: batch, sequence and hidden width.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.