Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# <img src="https://raw.githubusercontent.com/sssxks/end-cli/refs/heads/main/web/public/favicon.svg" alt="源石图标" width="64" height="64"> 源石计划 - 终末地产线规划
<!-- markdownlint-disable -->

<div align="center">

<img src="https://raw.githubusercontent.com/sssxks/end-cli/refs/heads/main/web/public/favicon.svg" alt="源石图标" width="128" height="128"> <br>

<!-- markdownlint-restore -->

# 源石计划

[![CI](https://github.com/sssxks/end-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/sssxks/end-cli/actions/workflows/ci.yml)

使用 Rust/WebAssembly 实现的终末地生产线规划工具,支持 CLI 和 Web 版本。基于 HiGHS 求解器实现 MILP 模型求解。
终末地产线规划

使用 Rust / WebAssembly 实现的终末地生产线规划工具,支持 CLI 和 Web 版本。基于 HiGHS 求解器实现 MILP 模型求解。

🔗 网页链接: [end-8jk.pages.dev](https://end-8jk.pages.dev/), [sssxks.github.io/end-cli/](https://sssxks.github.io/end-cli/)
</div>

## 截图展示

Expand Down Expand Up @@ -39,31 +50,31 @@ cargo install --git https://github.com/sssxks/end-cli end-cli

1. 生成配置模板,这是程序的输入数据文件:

```bash
end-cli init
```
```bash
end-cli init
```

2. 编辑当前目录下的 `aic.toml`(外部供给、外部消耗、据点价格、据点上限、外部耗电)。

3. 运行求解:

```bash
end-cli solve
```
```bash
end-cli solve
```

默认输出中文报告。英文报告可用:
默认输出中文报告。英文报告可用:

```bash
end-cli solve --lang en
```
```bash
end-cli solve --lang en
```

如果你看到下面这条报错:
如果你看到下面这条报错:

```text
Error: aic.toml not found; run `end-cli init --aic aic.toml` to create it
```
```text
Error: aic.toml not found; run `end-cli init --aic aic.toml` to create it
```

它表示当前目录没有对应配置文件,`solve` 会直接拒绝执行。先运行 `end-cli init` 生成模板并按需修改后再求解。
它表示当前目录没有对应配置文件,`solve` 会直接拒绝执行。先运行 `end-cli init` 生成模板并按需修改后再求解。

## 常用命令

Expand Down Expand Up @@ -100,3 +111,6 @@ end-cli solve --help
- 配方吞吐受机器数量约束
- 总发电功率 >= 总用电功率

## 贡献者

[![Contributors](https://contrib.rocks/image?repo=sssxks/end-cli)](https://github.com/sssxks/end-cli/graphs/contributors)
6 changes: 3 additions & 3 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading