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

Optimal Replacement year not exist #17

Open
suhimahes opened this issue Nov 19, 2024 · 3 comments
Open

Optimal Replacement year not exist #17

suhimahes opened this issue Nov 19, 2024 · 3 comments
Assignees

Comments

@suhimahes
Copy link

When the policy could not find the optimal replacement year for one/more assets , the expected total cost for those become NaN .
Are there any arguments to ignore or remedify .

Screenshot 2024-11-19 at 1 17 03 PM

@21ch216 21ch216 self-assigned this Nov 21, 2024
@21ch216
Copy link
Collaborator

21ch216 commented Nov 21, 2024

Hi, can you post the minimal set of commands you used to get this output ? How is your policy parametrized ? Like so, I could reproduce it and understand more precisely your need. Thanks in advance

@suhimahes
Copy link
Author

Hi,
Here it is.

a0 = a0.reshape(-1,1)
cf = cf.reshape(-1,1)
cp = cp.reshape(-1,1)

weibull = Weibull().fit(time,event,entry)

policy = AgeReplacementPolicy(weibull, a0=a0, cf=cf, cp=cp, rate = 0.04)
policy.fit()

This is mainly due to an asset does not have a optimal replacement year as below (in this example the first index)

Screenshot 2024-11-22 at 11 48 03 AM

@21ch216
Copy link
Collaborator

21ch216 commented Nov 22, 2024

What are the values of cf, cp, a0 and the estimated parameters of your distribution model ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants