App for calculate irons optimal percentage
界面中含输入、输出部分,UI级类似google翻译
输入是数个小div,可自定义增删数量
每个小div内含一个表单
- 各类矿石数据[包括其名称/6种元素含量/单位质量价格]
- 确认最优含量配比(高品位)范围
- 模型数据(供确认->提供返回上一步重定义)
- 价格最低的最优解
- 自动生成数据&可视化报表文件
- UI
- 跨平台(网页甚好 但要不要提供可供Linux运行的bash呢)
安装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.
