gamspy-mpsge 52.0.0rc1__py3-none-macosx_13_0_x86_64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gamspy_mpsge/__init__.py +9 -0
- gamspy_mpsge/gmsge_us.run +13 -0
- gamspy_mpsge/gmsge_ux.out +0 -0
- gamspy_mpsge/gmsgewus.run +4 -0
- gamspy_mpsge/gmsgewux.out +0 -0
- gamspy_mpsge/libmpsgeval.dylib +0 -0
- gamspy_mpsge/mpsgeset +54 -0
- gamspy_mpsge/version.py +1 -0
- gamspy_mpsge-52.0.0rc1.dist-info/METADATA +3 -0
- gamspy_mpsge-52.0.0rc1.dist-info/RECORD +12 -0
- gamspy_mpsge-52.0.0rc1.dist-info/WHEEL +5 -0
- gamspy_mpsge-52.0.0rc1.dist-info/top_level.txt +1 -0
gamspy_mpsge/__init__.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import os
|
|
2
|
+
from pathlib import Path
|
|
3
|
+
from .version import __version__
|
|
4
|
+
directory = str(Path(__file__).resolve().parent)
|
|
5
|
+
|
|
6
|
+
files = ['mpsgeset', 'gmsge_us.run', 'gmsge_ux.out', 'libmpsgeval.dylib', 'gmsgewus.run', 'gmsgewux.out']
|
|
7
|
+
|
|
8
|
+
file_paths = [directory + os.sep + file for file in files]
|
|
9
|
+
verbatim = 'MPSGE 100001 5 GE 1 0 1\ngmsgewus.run\ngmsgewux.out'
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# execute MPSGE preprocessor (called once during GAMS compile time)
|
|
3
|
+
|
|
4
|
+
# parameters:
|
|
5
|
+
# $1 : scratch directory
|
|
6
|
+
# $2 : working directory
|
|
7
|
+
# $3 : "$1", parameter file
|
|
8
|
+
# $4 : control file name
|
|
9
|
+
# $5 : system directory
|
|
10
|
+
|
|
11
|
+
${5}gmsge_ux.out $4
|
|
12
|
+
|
|
13
|
+
exit 11
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
gamspy_mpsge/mpsgeset
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
$hidden MPSGESET MPSGE setup and HDR file generation
|
|
2
|
+
$log --- Running the MPSGE preprocessor ...
|
|
3
|
+
* Default values for named arguments
|
|
4
|
+
$if %1a == a $goto missing
|
|
5
|
+
$if declared %1 $goto badname
|
|
6
|
+
$set model %1
|
|
7
|
+
$shift
|
|
8
|
+
$set mt 0
|
|
9
|
+
$if set MPSGEMT $set mt %MPSGEMT%
|
|
10
|
+
$label ProcessNamedArguments
|
|
11
|
+
$ splitOption "%1" key val
|
|
12
|
+
$ if x%key%==x $goto FinishProcessNamedArguments
|
|
13
|
+
$ iftheni.NamedArguments %key%==mt
|
|
14
|
+
$ set mt %val%
|
|
15
|
+
$ else.NamedArguments
|
|
16
|
+
$ error Unkown named argument "%key%"
|
|
17
|
+
$ endif.NamedArguments
|
|
18
|
+
$ shift
|
|
19
|
+
$goto ProcessNamedArguments
|
|
20
|
+
$label FinishProcessNamedArguments
|
|
21
|
+
|
|
22
|
+
$if NOT setglobal n_models $setglobal n_models 0
|
|
23
|
+
$if NOT setglobal n_constr $setglobal n_constr 0
|
|
24
|
+
$setlocal datetime %system.date%%system.time%
|
|
25
|
+
$setglobal %model% %datetime%
|
|
26
|
+
$setlocal par %gams.scrdir%gamscge.%gams.scrext%
|
|
27
|
+
$setlocal hdr %gams.scrdir%gamsgeh.%gams.scrext%
|
|
28
|
+
$hidden $show to dump symbols to listingfile
|
|
29
|
+
$echo INP %system.incparent% > %par%
|
|
30
|
+
$echo SCR gamscge.%gams.scrext% >> %par%
|
|
31
|
+
$if x%mt%==x0 $echo SCD %gams.workdir% >> %par%
|
|
32
|
+
$if not x%mt%==x0 $echo SCD %gams.scrdir% >> %par%
|
|
33
|
+
$echo NMO %n_models% >> %par%
|
|
34
|
+
$echo NCO %n_constr% >> %par%
|
|
35
|
+
$echo MDL %model% >> %par%
|
|
36
|
+
$echo HDR %hdr% >> %par%
|
|
37
|
+
$echo TIM %datetime% >> %par%
|
|
38
|
+
$if not %system.filesys%==UNIX $call gmsge_nx "%par%"
|
|
39
|
+
$if %system.filesys%==UNIX $call gmsge_ux.out "%par%"
|
|
40
|
+
$if errorlevel 1 $abort MPSGE preprocessor failed: further processing would be misleading
|
|
41
|
+
$include %hdr%
|
|
42
|
+
$hidden option oldname taken out for 21.3 builds, no longer supported
|
|
43
|
+
$exit
|
|
44
|
+
$label missing
|
|
45
|
+
$error missing model name argument for mpsgeset
|
|
46
|
+
|
|
47
|
+
* $sysinclude mpsgeset mymodel
|
|
48
|
+
*
|
|
49
|
+
$abort MPSGE further processing would be misleading
|
|
50
|
+
|
|
51
|
+
$label badname
|
|
52
|
+
$error model name already in use
|
|
53
|
+
* more explanation comes here
|
|
54
|
+
$abort MPSGE further processing would be misleading
|
gamspy_mpsge/version.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '52.0.0rc1'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
gamspy_mpsge/__init__.py,sha256=lv9bv7TSmg-19cZu_fwjokiK7-EiMJmi52VevZip9C4,349
|
|
2
|
+
gamspy_mpsge/gmsge_us.run,sha256=K8HA5WO_yEE9GD0ogQ867_JUSUGpIe20bOE3HSmv-MQ,266
|
|
3
|
+
gamspy_mpsge/gmsge_ux.out,sha256=v1exk07FT5767WuL8GHFE3DOC2fkvYXA_EeuvGf-C54,156144
|
|
4
|
+
gamspy_mpsge/gmsgewus.run,sha256=SoNMuw9GRAUmO6twILrYd0kcxnFnG2DimqFt3og9BUI,103
|
|
5
|
+
gamspy_mpsge/gmsgewux.out,sha256=D4q5rmeXIPxAacLt1edeteqtQDBVKwTFG96UgdnCz2A,543568
|
|
6
|
+
gamspy_mpsge/libmpsgeval.dylib,sha256=IIuWZrp60AgHft12Zq8rUFKpEKTUeJ7sEDjbO1UqA6k,174880
|
|
7
|
+
gamspy_mpsge/mpsgeset,sha256=b3yeEBehF4v0d9yiURKp8pbCDYOX34drFJ2Jqr_p7L4,1887
|
|
8
|
+
gamspy_mpsge/version.py,sha256=xEmi9aNSuCk1FB4wuU1dnHDcnFovh89ZPfIiCZCjNrA,25
|
|
9
|
+
gamspy_mpsge-52.0.0rc1.dist-info/METADATA,sha256=6Ri3Nv38Oph-m9W7QwHAaalVhkHFqVinZs27uMm3ykY,60
|
|
10
|
+
gamspy_mpsge-52.0.0rc1.dist-info/WHEEL,sha256=SFDFti0ktJEDbNgnSkwKMLyZhusCvEO6pqHMXousbqU,112
|
|
11
|
+
gamspy_mpsge-52.0.0rc1.dist-info/top_level.txt,sha256=fFGHc0aIUS4As3C1AF49tM5L1gNFfszi8rB1B55EbeE,13
|
|
12
|
+
gamspy_mpsge-52.0.0rc1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
gamspy_mpsge
|