A .prop constraint at a time past the experiment's t_end is reported as satisfied and adds no penalty
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
Research direction
Start by tracing the interval search mentioned in the report and how qualitative constraints are evaluated for an experiment with t_end. Reproduce the late.prop case with t_end: 5 and t_end: 10; then find the relevant configuration-loading and scoring tests. Done means an unreachable constraint stops with an error naming the constraint time and t_end, rather than being counted as satisfied.
Written by the indexing model from the issue text.
Description
A constraint whose time lies beyond the simulated range is never evaluated, and PyBNF reports it as satisfied. The fit then optimizes as if the constraint were not there.
Reproduction, from a scratch copy of examples/tutorial/36_estimate_noise/ (decay.bngl, decay.exp), with job_type = check, which scores one parameter set:
edition = 2
model: decay.bngl
bngl_backend = bngsim
job_type = check
noise_model = normal, sigma = fix_at 1
experiment: timecourse, data: decay.exp
experiment: qual, data: late.prop, t_end: 5, n_steps: 50
uniform_var = k 0.05 3.0
output_dir = out
with late.prop holding the single line Obs_A > 1000 at time=8. The model's Obs_A at time 8 is about 1.8, so the constraint is false.
- Without the
qualexperiment:Objective value is 288.77596758417525. - With it,
t_end: 5:Objective value is 288.77596758417525, andSatisfied 1 out of 1 constraints. - With it,
t_end: 10:Objective value is 1286.9444034221583, andSatisfied 0 out of 1 constraints.
So at t_end: 5 the constraint adds nothing and is counted as satisfied. The independent review of the #1030 fix found this. It traced it to the interval search, which finds no crossing in a simulation that ends before the constraint's time, and returns nothing.
A constraint that names a time the simulation never reaches cannot be checked. It should be refused when the configuration loads, naming the constraint, its time and the experiment's t_end. If a constraint's times depend on the fit, so that this can only be known while scoring, the evaluation should stop with that message rather than count the constraint as satisfied.
- Dominant language
- Python
- Stars
- 25
- Forks
- 25
- Avg merge
- 4h 5m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lanl/PyBNF
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
bug minor
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug silent-incorrectness
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPossibly taken @lijy91 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
libnativeapi/nativeapi#53 · 1 reaction ·
Maintainers usually reply within 1 day
-
View Counts discarded due to field name mismatchPossibly taken @rsiva0400 claimed this today. Opensite-bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Model version publishes the new UK firm entity as a personPossibly taken @vahid-ahmadi claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
PolicyEngine/policyengine.py#764 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
spcl/HPCAgent-Bench#264 ·
Maintainers usually reply within 1 day