fast_calc_solve
Calculate the percentage adjustment to revenue, cost, or construction investment required to reach a target financial metric such as IRR or payback period, based on input data files.
Instructions
指标反算(秒级,二分法+引擎精算):给定5类输入txt与目标指标值(如全投资税后IRR=8%),反推收入/成本/建设投资的调整幅度。杠杆(knob):revenue_pct 收入整体±% / cost_pct 成本整体±% / invest_pct 建设投资±%(含税金额+进度款同步等比+闭合守卫)。目标(target):irr_all_post/irr_all_pre/irr_cap_post/irr_cap_pre/irr_inv_pre/payback/dpayback/npv_all_post/npv_all_pre/npv_cap_post/npv_cap_pre/npv_inv_pre/npvr/pi(14项,IRR%/NPV万元/回收期月同报表原生口径)。want:down(默认,降到目标)/up(升到目标)。建议先用 fast_calc_reports 查看基准值再反算。返回语义:ok=true+nochange=true=已达标无需调整(见 msg);ok=false+reason=range=探索范围内无解(message 含当前值→可达极限值,应如实告知用户并建议换杠杆或结构性调整);k 逼近±90%/+300% 边界时 note 附⚠️边界警告(返回边界最优解而非精确达标解)。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | Yes | 目标值(IRR与回收期同报表原生口径:%/月) | |
| knob | Yes | 反算杠杆:收入/成本/建设投资 整体±% | |
| want | No | 降至目标(默认)/升至目标 | |
| files | Yes | 5类输入txt:文件名→全文 | |
| target | Yes | 目标指标 |