Optimizing a general optimal replacement model by fractional programming techniques