Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account for producer shutins #69

Open
frank1010111 opened this issue Oct 19, 2023 · 0 comments
Open

Account for producer shutins #69

frank1010111 opened this issue Oct 19, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@frank1010111
Copy link
Owner

frank1010111 commented Oct 19, 2023

Is your feature request related to a problem? Please describe.
When producers are shut in and not producing, their production is still predicted. Those lengths of time should not factor into the residuals for finding connectivity between the shut in producers and the active injectors.

Describe the solution you'd like
There should be a flag that, when set, changes the behavior so that when production is zero, the residual for a fit should be set to zero.

class CRM:
    ...
    def __init__(
        self,
        primary: bool = True,
        tau_selection: str = "per-pair",
        constraints: str = "positive",
        producer_shutins: bool = False,
    ):

Describe alternatives you've considered
A mask could be applied. This effect can be ignored (but maybe shouldn't).

Additional context
The function of interest is at

def residual(x, production):
return sum(
(production - self._calculate_qhat(x, production, injection, time)) ** 2
)

@frank1010111 frank1010111 added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant