3 Commits
Author SHA1 Message Date
nutcas3 8357428400 refactor: Mark unused parameters with underscore and remove unused getHighestPriorityCarrier helper
- Mark unused model parameter with underscore in generateMaintenanceRecommendations
- Mark unused context and period parameters with underscore in calculateCompetitiveIndex
- Mark unused context parameter with underscore in calculateOptimizationROI
- Mark unused data parameter with underscore in generateAnalysis
- Mark unused ratePlan and data parameters with underscore in optimizeForCompetitive
- Mark unused
2026-05-03 13:52:08 +03:00
nutcas3 ef374ce122 feat: Refactor pricing optimization service by extracting helper functions to separate file
- Move calculateElasticity, calculateCompetitiveIndex, and calculateOptimizationROI to optimization_opt_service.go
- Move generateAnalysis, calculateConfidence, and calculateChurnRate to optimization_opt_service.go
- Simplify calculatePriceElasticity by removing comments and consolidating logic
- Simplify optimizeForRevenue, optimizeForMarketShare, optimizeForProfitMargin, optimizeForCompetitive, and optimizeForChurn
2026-05-03 13:06:57 +03:00
nutcas3 045dd6904b feat: Add pricing optimization service with elasticity calculations, strategy-based pricing, and demand prediction
- Add calculatePriceElasticity using log-linear regression with realistic telecom bounds (-2.0 to -0.3)
- Add optimizeForRevenue using revenue optimization formula with elasticity-based pricing
- Add optimizeForMarketShare with penetration strategy and aggressive pricing based on elasticity
- Add optimizeForProfitMargin using cost-plus analysis with 40% target margin
- Add optimizeForComp
2026-05-03 12:54:36 +03:00