Skip to content

Matrix Hub v2.0

Latest

Choose a tag to compare

@Amoiensis Amoiensis released this 14 Aug 09:19
· 5 commits to main since this release

Matrix Hub v2.0

Matrix Hub v2.0 是一个轻量级 C 语言矩阵计算项目,面向嵌入式部署、轻量使用、小规模工程计算和二次开发。项目提供矩阵运算 C 头文件库、类 Matlab 的 .m 脚本计算器与交互式 >> 输入模式,以及轻量 LP/MIP 求解
器和插件接口。

Matrix Hub v2.0 is a lightweight C matrix computation project for embedded deployment, compact usage, small-scale engineering calculation, and secondary development. It provides a C header matrix
library, a Matlab-like .m script calculator with interactive >> mode, and lightweight LP/MIP solver components.

下载 / Downloads

  • MatrixHub-v2.0-macos-arm64.zip
    适用于 Apple Silicon Mac。下载并解压后,可直接运行 CLI 矩阵计算器或 LP/MIP 求解器。
    For Apple Silicon Mac. Download and unzip, then run the CLI matrix calculator or LP/MIP solver directly.

  • MatrixHub-v2.0-windows-x64.zip
    适用于 Windows x64。下载并解压后,可通过 .bat 启动脚本或 .exe 文件运行。
    For Windows x64. Download and unzip, then run it through the .bat launcher or .exe file.

主要更新 / What's New

  • 重新整理项目结构,发布为 Matrix Hub v2.0。
    Reorganized the project as Matrix Hub v2.0.

  • 提供三种主要使用方式:C 头文件库、命令行矩阵计算器、LP/MIP 求解器。
    Added three usage modes: C header library, command-line matrix calculator, and LP/MIP solver.

  • 支持类 Matlab 的 .m 脚本执行和 >> 交互式输入。
    Added Matlab-like .m script execution and interactive >> input.

  • LP/MIP 求解器支持常用 .lp 文件读取、进度输出和结果报告。
    The LP/MIP solver supports common .lp files, progress output, and readable result reports.

  • 增加中文、英文、日文 README,以及中文/英文 help 文档。
    Added Chinese, English, and Japanese README files, plus Chinese/English help documents.

  • 增加 C 库调用示例、脚本示例和求解器示例。
    Added C library examples, script examples, and solver examples.

  • 优化数值阈值、求解器参数、日志输出和打包下载体验。
    Improved numerical thresholds, solver options, progress logs, and packaged downloads.

快速开始 / Quick Start

CLI 矩阵计算器 / Matrix CLI

交互式输入 / Interactive mode:

./Matrix_Hub_v2_0_cli

执行 .m 脚本 / Run a .m script:

./Matrix_Hub_v2_0_cli examples/scripts/basic.m

LP/MIP 求解器 / LP/MIP Solver

求解 MIP 问题 / Solve a MIP problem:

./Matrix_Hub_v2_0_solver mip examples/solver/problems/gt2.lp --progress 10

输出可读报告 / Write a readable report:

./Matrix_Hub_v2_0_solver mip examples/solver/problems/gt2.lp --progress 10 --output-dir ./solver_report_store

查看帮助 / Show help:

./Matrix_Hub_v2_0_solver --help
./Matrix_Hub_v2_0_cli help

文件说明 / Package Notes

解压后优先阅读 / Read this first after unzipping:

00_README_START_HERE.txt

Windows 用户可以优先运行 / For Windows users:

01_Run_CLI_Windows.bat
02_Run_Solver_Example_Windows.bat
03_Run_Solver_Help_Windows.bat

macOS 用户可以优先运行 / For macOS users:

01_Run_CLI_macOS.command
02_Run_Solver_Example_macOS.command
03_Run_Solver_Help_macOS.command

如果 macOS 提示无执行权限,可在终端运行 / If macOS reports missing execute permission, run:

chmod +x Matrix_Hub_v2_0_cli Matrix_Hub_v2_0_solver *.command

项目 / Project

https://github.com/Amoiensis/Matrix_hub

Author: Sebin (Xiping.Yu)
Email: Amoiensis@outlook.com