Skip to content

Commit

Permalink
Adding vSPD Override gdx creation
Browse files Browse the repository at this point in the history
User can use excel interface to create overrides to apply to vSPD run
  • Loading branch information
TuongEA committed Nov 29, 2023
1 parent 446da43 commit 3360a91
Show file tree
Hide file tree
Showing 8 changed files with 190 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vSPD_Overrides/excel2gdx.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cd /D "%~dp0"
gdxxrw vSPD_Overrides.xlsx output="../Override/vSPD_Overrides" squeeze=n @howtoread.inc
pause
Binary file added vSPD_Overrides/gdxdclib.dll
Binary file not shown.
Binary file added vSPD_Overrides/gdxdclib64.dll
Binary file not shown.
Binary file added vSPD_Overrides/gdxviewer.exe
Binary file not shown.
164 changes: 164 additions & 0 deletions vSPD_Overrides/gdxviewer.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
[filehistory]
lastdirectory=C:\vSPD\vSPD_Overrides\Override\
file1=C:\vSPD\vSPD_Overrides\Override\TestOverridesHowtoRead.gdx
file2=
file3=
file4=
file5=

[specialvaluemapping]
inf=INF
minf=-INF
eps=EPS
na=NA
undf=UNDF

[textfileexport]
columnseparator=0
append=0

[CSVfileexport]
indexquotes=1
specialvaluequotes=0

[export]
indices=1
lowerbounds=1
levels=1
upperbounds=1
marginals=1

[XLSfileexport]
backup=1
newspreadsheet=0

[MDBfileexport]
indexlength=31
importmethod=0

[HTMLexport]
tableborder=0
tablepadding=0
tablespacing=0

[XMLexport]
roottag=gams
recordtag=record
parametervaluetag=value
lotag=lo
leveltag=level
uptag=up
marginaltag=marginal
dim1tag=dim1
dim2tag=dim2
dim3tag=dim3
dim4tag=dim4
dim5tag=dim5
dim6tag=dim6
dim7tag=dim7
dim8tag=dim8
dim9tag=dim9
dim10tag=dim10

[SQL]
connectionstring=
userid=
password=
indexlength=31
doubletype=double

[SQLINSERT]
dbcol1=
dbcol2=
dbcol3=
dbcol4=
dbcol5=
dbcol6=
dbcol7=
dbcol8=
dbcol9=
dbcol10=
dbcol11=
dbcol12=
gdxcol1=-1
gdxcol2=-1
gdxcol3=-1
gdxcol4=-1
gdxcol5=-1
gdxcol6=-1
gdxcol7=-1
gdxcol8=-1
gdxcol9=-1
gdxcol10=-1
gdxcol11=-1
gdxcol12=-1
quotecol1=0
quotecol2=0
quotecol3=0
quotecol4=0
quotecol5=0
quotecol6=0
quotecol7=0
quotecol8=0
quotecol9=0
quotecol10=0
quotecol11=0
quotecol12=0
tablename=
semicolon=1

[SQLUPDATE]
dbcol1=
dbcol2=
dbcol3=
dbcol4=
dbcol5=
dbcol6=
dbcol7=
dbcol8=
dbcol9=
dbcol10=
dbcol11=
dbcol12=
gdxcol1=-1
gdxcol2=-1
gdxcol3=-1
gdxcol4=-1
gdxcol5=-1
gdxcol6=-1
gdxcol7=-1
gdxcol8=-1
gdxcol9=-1
gdxcol10=-1
gdxcol11=-1
gdxcol12=-1
quotecol1=0
quotecol2=0
quotecol3=0
quotecol4=0
quotecol5=0
quotecol6=0
quotecol7=0
quotecol8=0
quotecol9=0
quotecol10=0
quotecol11=0
quotecol12=0
tablename=
semicolon=1

[SQLServer]
server=
database=
userid=
password=
insertmethod=0
indexlength=31

[listfont]
name=MS Sans Serif
charset=1
color=-16777208
size=12
style=0

Binary file added vSPD_Overrides/gdxxrw.exe
Binary file not shown.
23 changes: 23 additions & 0 deletions vSPD_Overrides/howtoread.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
par=demand_overrides rng=NodeDemandOvrd!A2 rDim=4

par=offer_parameter_overrides rng=OfferParameterOvrd!A2 rDim=3

par=energy_offer_overrides rng=EnergyOfferOvrd!A2 rDim=4

par=reserve_offer_overrides rng=ReserveOfferOvrd!A2 rDim=6

par=bid_parameter_overrides rng=BidParameterOvrd!A2 rDim=3

par=energy_bid_overrides rng=EnergyBidOvrd!A2 rDim=4

par=branch_parameter_overrides rng=BranchParameterOvrd!A2 rDim=3

par=branch_constraint_overrides rng=BranchConstraintOvrd!A2 rDim=3

par=branch_cnstr_factor_overrides rng=BranchConstraintFactorOvrd!A2 rDim=3

par=marketnode_constraint_overrides rng=MnodeConstraintOvrd!A2 rDim=3

par=marketnode_cnstr_factor_overrides rng=MnodeConstraintFactorOvrd!A2 rDim=5


Binary file added vSPD_Overrides/vSPD_Overrides.xlsx
Binary file not shown.

0 comments on commit 3360a91

Please sign in to comment.