fix: Toleranz bei Relaxationsschranke, Grund bei fehlgeschlagenem Szenario
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
c68a293755
commit
ee9a193cd7
1 changed files with 27 additions and 3 deletions
|
|
@ -143,3 +143,9 @@ def test_report_shows_sensitivity_and_integrality_price():
|
|||
page = to_html(build_document(result))
|
||||
assert "Sensitivität der bindenden Restriktionen" in page and "Preis der Ganzzahligkeit" in page
|
||||
assert "0,1" in page.replace(".", ",") or "0.1" in page # (12100-12000)/1000 = 0.1
|
||||
|
||||
|
||||
def test_relaxation_bound_equal_up_to_rounding_is_no_warning():
|
||||
# beobachtet (Portfolio Nr. 2): 0.13896862211718014 gegen 0.13896862211718017
|
||||
run = sens_run([], objective=0.13896862211718017, relaxation=0.13896862211718014)
|
||||
assert check_sensitivity(run, "maximize") == []
|
||||
|
|
|
|||
Loading…
Reference in a new issue