A gradient fit whose difference-quotient fallback crosses a moving branch fails every point and reports success at objective inf

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start by reading the setup-time refusal work in issue #1019 and trace how PyBNF handles declined analytic sensitivities and CVODES difference quotients. The issue says bngsim’s static crossing verdict is available only as prose on a cold cache, and a setup-time check may require a bngsim API. Done means setup can refuse fits that would otherwise fail every point and report objective inf with exit status 0.

Written by the indexing model from the issue text.

Description

bug

Some models decline bngsim's analytic sensitivity right-hand side, and then the gradient falls back to CVODES' difference quotient. When that fallback would cross a moving branch (a switch whose time depends on the parameters), bngsim ≥ 0.14 refuses it only at run time.

What happens. Every point fails, and the fit ends with objective inf and exit status 0. Setup does not refuse it.

What #1019 covered. It added setup-time refusals for the declined-model cases it could decide: an initial-value column, and job_type = ms. This one was listed under "Not in this PR".

What a fix needs. A setup-time check needs bngsim's static crossing verdict as data. Today PyBNF sees it only as prose, on a cold cache. That may need a bngsim API.

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.