Skip to content

Instantly share code, notes, and snippets.

View silverHugh's full-sized avatar

岸晓 silverHugh

View GitHub Profile
@silverHugh
silverHugh / simplex.py
Last active September 3, 2022 04:03
Implementation of Simplex method using python.
#!/usr/bin/python3
# Simplex method
# Author: HongXin
# 2016.11.17
import numpy as np
def xlpsol(c, A, b):
"""
@silverHugh
silverHugh / catalog.py
Created August 11, 2017 07:11
Deal with file and directories, xlsx and extract text from pdf
import os
import re
from PyPDF2 import PdfFileReader
import textract
import csv
from openpyxl import Workbook
from openpyxl.writer.write_only import WriteOnlyCell
class Catloger(object):