Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

timrockefeller/ivring

Repository files navigation

ivring

App for calculate irons optimal percentage

Overall Seek

基本框架

界面中含输入、输出部分,UI级类似google翻译

输入是数个小div,可自定义增删数量

每个小div内含一个表单

要求用户输入
Config部分
  • 各类矿石数据[包括其名称/6种元素含量/单位质量价格]
输入部分
  • 确认最优含量配比(高品位)范围
输出部分
  • 模型数据(供确认->提供返回上一步重定义)
  • 价格最低的最优解
  • 自动生成数据&可视化报表文件
或许能考虑的部分
  • UI
  • 跨平台(网页甚好 但要不要提供可供Linux运行的bash呢)

Preview

1586911442526

Build Setup

安装node-glpk时所需前置依赖(需要admin权限):

npm install -g node-gyp
npm install --global --production windows-build-tools

此处需考虑平台问题

echo "Please run it in root user."
# check run environments
a=`uname  -a`

b="Darwin"
c="centos"
d="ubuntu"

if [[ $a =~ $b ]];then
    echo "Run in mac: you need manually installation using brew."
elif [[ $a =~ $c ]];then
    echo "Now running in CentOS."
elif [[ $a =~ $d ]];then
    echo "Now running in Ubuntu."
else
    echo $a
fi
apt update

# check python version
apt install curl
apt install --upgrade python3
apt install  python3-disutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
rm get-pip.py

# install dependencies
pip install pulp
pip install GLPK


# serve with hot reload at localhost:9080
npm run dev

# build electron application for production
npm run build

# run unit tests
npm test


# lint all JS/Vue component files in `src/`
npm run lint

This project was generated with electron-vue@45a3e22 using vue-cli. Documentation about the original structure can be found here.

About

App for calculate irons optimal percentage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •