A .prop constraint at a time past the experiment's t_end is reported as satisfied and adds no penalty

Open
#1,048 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

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

bug silent-incorrectness

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 qual experiment: Objective value is 288.77596758417525.
  • With it, t_end: 5: Objective value is 288.77596758417525, and Satisfied 1 out of 1 constraints.
  • With it, t_end: 10: Objective value is 1286.9444034221583, and Satisfied 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from lanl/PyBNF

All issues in lanl/PyBNF

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.