glpk

PyInstaller .exe file does nothing

此生再无相见时 提交于 2021-02-07 06:24:14
问题 After 3 days, I can't get a python program packaged into a .exe file. I've tried py2exe (which continuously missed modules), and PyInstaller. Here's the complicated part. My program uses a lot of additional installed modules (coopr, pyomo, openpyxl, glpk, cbc, pyutilib, numpy, etc.). These in turn import all kinds of other things, and I can't track it down (the PyInstaller warning log lists 676 lines of missing or potentially unneeded modules.) However, I've gotten (by adding imports of

PyInstaller .exe file does nothing

会有一股神秘感。 提交于 2021-02-07 06:23:09
问题 After 3 days, I can't get a python program packaged into a .exe file. I've tried py2exe (which continuously missed modules), and PyInstaller. Here's the complicated part. My program uses a lot of additional installed modules (coopr, pyomo, openpyxl, glpk, cbc, pyutilib, numpy, etc.). These in turn import all kinds of other things, and I can't track it down (the PyInstaller warning log lists 676 lines of missing or potentially unneeded modules.) However, I've gotten (by adding imports of

Pyomo can't locate GLPK solver

允我心安 提交于 2021-02-07 03:20:27
问题 I'm trying to use the GLPK solver with Pyomo. I have a working model that's been tested, but keep getting an error saying GLPK can't be found. WARNING: Could not locate the 'glpsol' executable, which is required for solver 'glpk' I've installed glpk sucessfully. I also added the directory to my path variable so the executed can be called globally. I tested this with glpsol --help from my command line, and see the help info printed. The below thread says it should be working, but alas, it is

Pyomo can't locate GLPK solver

梦想与她 提交于 2021-02-07 03:19:17
问题 I'm trying to use the GLPK solver with Pyomo. I have a working model that's been tested, but keep getting an error saying GLPK can't be found. WARNING: Could not locate the 'glpsol' executable, which is required for solver 'glpk' I've installed glpk sucessfully. I also added the directory to my path variable so the executed can be called globally. I tested this with glpsol --help from my command line, and see the help info printed. The below thread says it should be working, but alas, it is

ERROR: Could not build wheels for glpk which use PEP 517 and cannot be installed directly

风流意气都作罢 提交于 2021-02-05 10:44:08
问题 I'm trying to install glpk using pip on a virtual enviroment but it keeps giving this error regarding the wheels for pip installing "ERROR: Could not build wheels for glpk which use PEP 517 and cannot be installed directly": $ pip install glpk Collecting glpk Using cached glpk-0.4.5.tar.gz (152 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Building wheels for collected packages: glpk Building wheel for glpk (PEP 517)

Julia - Parallel mathematical optimizers

断了今生、忘了曾经 提交于 2020-01-24 20:01:10
问题 Im using GLPK with through Julia, and I need to optimize the same GLPK.Prob repeatedly. What changes between each optimization is that some combination of variables gets fixed to 0 simply put in pseudocode lp = GLPK.Prob() variables_to_block = [[1,2,3], [2,3], [6,7], [19,100,111]...] for i in variables_to_block block_vars(lp, i) simplex(lp) restore_vars(lp, i) end when I then run this, it looks like CPU1 acts as a scheduler, staying in the 9-11% range, and the load on CPU3 and CPU4 alternates

Python: Why am I encountering this error with importing glpk on MacOSX?

柔情痞子 提交于 2020-01-13 05:06:48
问题 I followed these steps and got my first error: wget http://www.dcc.fc.up.pt/~jpp/code/python-glpk/python-glpk_0.4.43.orig.tar.gz tar -xzf python-glpk_0.4.43.orig.tar.gz cd python-glpk-0.4.43/src/ sudo make install I got this error: make -C swig all make[1]: pyversions: Command not found gcc -Wall -c -fPIC glpkpi_wrap.c -DHAVE_CONFIG_H -I/usr/include/ -I/usr/lib//config glpkpi_wrap.c:130:11: fatal error: 'Python.h' file not found # include <Python.h> ^ 1 error generated. make[1]: *** [glpkpi