Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev/qcqp to master #215

Draft
wants to merge 119 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
7a812a8
resolve #182
gbyeon Dec 18, 2020
2cb3124
update writeProb
gbyeon Dec 18, 2020
e37ee6a
add function for converting qcp to socp
gbyeon Dec 18, 2020
08102bb
Merge branch 'dev/qcqp' of https://github.com/Argonne-National-Labora…
gbyeon Dec 18, 2020
b90a1a0
Update DspCInterface.cpp
gbyeon Dec 18, 2020
9f23953
fix rlbd_scen indices
gbyeon Dec 18, 2020
59a7730
minor update
gbyeon Jan 17, 2021
969670e
Update .gitignore
gbyeon Jan 17, 2021
1febeb2
Update deprecated SCIP syntax
gbyeon Jan 15, 2022
6520a5a
clean up
gbyeon Jan 18, 2022
9069770
Merge branch 'master' into dev/qcqp
kibaekkim Feb 25, 2022
9f963b1
Merge branch 'master' into dev/qcqp
kibaekkim Mar 1, 2022
ed9cdd6
Merge branch 'dev/qcqp' into dev/qcqp-gbyeon
gbyeon Mar 4, 2022
e03802f
socp transformation
gbyeon Mar 17, 2022
e394093
minor edit
gbyeon Mar 17, 2022
f6bb52d
removed duplicates
kibaekkim Mar 17, 2022
76cdaf1
add DdWorkerUB2 that allows coupling qc
gbyeon Mar 22, 2022
6508bb3
Merge branch 'dev/qcqp-gbyeon' of https://github.com/Argonne-National…
gbyeon Mar 22, 2022
eee6b7e
added QCP strategy on
kibaekkim Mar 25, 2022
3318ffb
Merge branch 'dev/qcqp-gbyeon' of github.com:Argonne-National-Laborat…
kibaekkim Mar 25, 2022
c6d4e3f
resolved #218
kibaekkim Mar 25, 2022
1d1c2bf
commented out printout
kibaekkim Apr 8, 2022
66498b9
Update DdWorkerUB.cpp
gbyeon Apr 8, 2022
28493a6
Merge branch 'dev/qcqp-gbyeon' of https://github.com/Argonne-National…
gbyeon Apr 8, 2022
865245e
mute printArray
gbyeon Apr 8, 2022
8620099
Merge branch 'master' into dev/qcqp
kibaekkim Apr 15, 2022
94e2399
Merge branch 'master' into dev/qcqp-gbyeon
gbyeon Apr 15, 2022
468a960
define scip and grb functions to use in upper bounding problems
gbyeon Apr 29, 2022
070a8c5
added parameter DE/SOLVER/MIQCP_METHOD
kibaekkim May 3, 2022
7488c2d
Merge branch 'dev/qcqp-gbyeon' of github.com:Argonne-National-Laborat…
kibaekkim May 3, 2022
14fb8ff
Added DD/SOLVER/MIQCP_METHOD
kibaekkim May 4, 2022
522163b
some more messages
kibaekkim May 4, 2022
33fc307
Merge branch 'dev/qcqp' into dev/qcqp-gbyeon
kibaekkim May 4, 2022
56c195c
clean up
gbyeon May 5, 2022
11be179
Merge pull request #234 from Argonne-National-Laboratory/dev/qcqp-gbyeon
kibaekkim May 5, 2022
d9ca684
resolved #141
kibaekkim May 5, 2022
c119b1b
resolved #158
gbyeon Nov 14, 2020
0145ddd
removed repeated message displays
kibaekkim May 5, 2022
ed5750b
resolve #174
gbyeon Dec 8, 2020
1ba38d6
added paths-ignore for Actions
kibaekkim Dec 11, 2020
0dbea05
allowing the master proc to have no subproblem in dw
kibaekkim Dec 19, 2020
40b7ced
added macro
kibaekkim Dec 19, 2020
0ff5915
functions to check if subproblems are distributed
kibaekkim Dec 23, 2020
a8947af
disabled DW and DRO for distributed subproblems
kibaekkim Dec 23, 2020
6fd1f67
synchronizing probability for BD and DD
kibaekkim Dec 23, 2020
3d92b44
fixed typo
kibaekkim Dec 23, 2020
8f546bc
resolved #193
kibaekkim Jan 7, 2021
9f24803
Fixed #194
kibaekkim Jan 7, 2021
8456b7e
removed function nonanticipativity()
kibaekkim Jan 7, 2021
6d9eef3
refactored to use function getLambda()
kibaekkim Jan 7, 2021
f9bd0c2
refactored to use function getLambda()
kibaekkim Jan 7, 2021
cbbb2a2
more fixes to #194
kibaekkim Jan 7, 2021
e1e5230
make sure that probability sums to one
kibaekkim Jan 7, 2021
2cedd76
do not run Actions for pushes
kibaekkim Jan 7, 2021
2f809df
minor refactoring
kibaekkim Jan 7, 2021
0d41378
added new parameter
kibaekkim Jan 12, 2021
fb8408c
use parameters to set UB subproblem solve
kibaekkim Jan 12, 2021
52e7207
fixed #196
kibaekkim Jan 12, 2021
e817d27
fixed #198
kibaekkim Jan 12, 2021
2e68f80
turn off the Benders cuts for DD-DRO
kibaekkim Jan 13, 2021
5aaf77c
fixed termination test for trust-region method
kibaekkim Jan 13, 2021
fa4a4c5
fixed incorrect probability for DD-DRO upper bounding
kibaekkim Jan 13, 2021
b574e40
refactoring
kibaekkim Jan 13, 2021
c57b139
fixed parallel upper bounding for DD-DRO
kibaekkim Jan 13, 2021
7d8e747
Fixed #199
kibaekkim Jan 13, 2021
847771f
print iteration info before terminate
kibaekkim Jan 13, 2021
3b37585
fixed #200
kibaekkim Jan 13, 2021
05277b0
fixed #203
kibaekkim Oct 25, 2021
d6e6c00
commented out file write
kibaekkim Nov 10, 2021
fb1f62c
some modifications to cmake files
kibaekkim Nov 10, 2021
c63ffa2
checks if parsed line contains '\r' and deletes it
hideakiv Dec 16, 2021
4469f7b
fixed solution vector size
kibaekkim Dec 16, 2021
c01669e
avoid exception
kibaekkim Dec 17, 2021
79d5e41
closed #213
kibaekkim Dec 18, 2021
748d213
set default values
kibaekkim Mar 17, 2022
ea564c0
fixed #223
kibaekkim Apr 13, 2022
f36c5b7
Fixed #224
kibaekkim Apr 13, 2022
2a06ee6
Fixed #225
kibaekkim Apr 13, 2022
e41ed65
Fixed #226
kibaekkim Apr 13, 2022
55776db
Update build-test.yml
kibaekkim May 5, 2022
71273ca
Merge branch 'release' into kk/patch/1.4.1
kibaekkim May 5, 2022
9f2dc4c
added a function argument for stochastic model generation
kibaekkim Jan 13, 2021
43ac5f8
added setProbability
kibaekkim Dec 23, 2020
6b147a7
version up
kibaekkim May 5, 2022
b30baf6
Update release-drafter.yml
kibaekkim May 5, 2022
3748ca7
Update build-test.yml
kibaekkim May 5, 2022
4c3b5e0
Merge pull request #235 from Argonne-National-Laboratory/kk/patch/1.4.1
kibaekkim May 5, 2022
04cdfba
Update release-drafter.yml
kibaekkim May 5, 2022
1c37d13
Merge branch 'release-draft' of github.com:Argonne-National-Laborator…
kibaekkim May 5, 2022
fe811ac
update release-drafter
kibaekkim May 5, 2022
f5b2161
add qc feature to dw
gbyeon May 5, 2022
289ba46
Merge pull request #236 from Argonne-National-Laboratory/release-draft
kibaekkim May 5, 2022
2327472
Update README.md
kibaekkim May 5, 2022
d6845ed
Update build-test.yml
kibaekkim May 5, 2022
5199983
Update build-test.yml
kibaekkim May 5, 2022
b0c6d7a
fixed #240
kibaekkim May 12, 2022
83d0f16
fixed #238
kibaekkim May 12, 2022
fe085ce
v1.5.1
kibaekkim May 12, 2022
88de856
Dd upper bounding problem name change
gbyeon May 13, 2022
c2a2b64
Update build-test.yml
kibaekkim May 13, 2022
2c9b9e6
Merge pull request #244 from Argonne-National-Laboratory/kk/patch/1.5.1
kibaekkim May 13, 2022
a7b2255
Update build-test.yml
kibaekkim May 13, 2022
ca0cffd
Update README.md
kibaekkim May 13, 2022
6c7bf1d
added detailed descriptions
kibaekkim May 14, 2022
1f0cbf5
fixed #247
Jul 13, 2022
03de90a
Merge pull request #248 from Argonne-National-Laboratory/247-cplex-er…
kibaekkim Jul 19, 2022
6c56335
version patch
kibaekkim Jul 19, 2022
ca8aac3
fixed the number of DD iterations
kibaekkim Jul 19, 2022
b886753
display more outputs
kibaekkim Jul 19, 2022
2fe2479
temporary switch from barrier to simplex for numerical issue
kibaekkim Aug 4, 2022
ffeeae8
updated files for dro experiments
kibaekkim Aug 4, 2022
659a0c5
prin the copyright at root process only
kibaekkim Aug 4, 2022
65401cb
Merge pull request #249 from Argonne-National-Laboratory/kk/patch/1.5.2
kibaekkim Aug 4, 2022
17013fe
provide reproducible setting
kibaekkim Aug 4, 2022
240d855
Merge pull request #251 from Argonne-National-Laboratory/kk/patch/1.5.2
kibaekkim Aug 4, 2022
8f3ece2
Merge pull request #252 from Argonne-National-Laboratory/release-draft
kibaekkim Aug 4, 2022
c4cff26
Merge branch 'dev/qcqp-gbyeon' into dev/qcqp
kibaekkim Feb 13, 2023
b0a3cdf
Merge branch 'release' into dev/qcqp
kibaekkim Feb 14, 2023
25ed44c
added back tests
kibaekkim Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ build/*
build_merge/*
extra/glpk*
cplex.log
.DS_Store
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ if (NOT ${CPLEX_LIB_DIR} STREQUAL "")
endif()

if(NOT ${GUROBI_LIB_DIR} STREQUAL "")
find_library(GUROBILIB NAMES gurobi90 PATHS ${GUROBI_LIB_DIR})
find_library(GUROBILIB NAMES gurobi91 PATHS ${GUROBI_LIB_DIR})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be independent to versions?

if(GUROBILIB)
message(STATUS "Found ${GUROBILIB}")
else()
message(FATAL_ERROR "Could NOT find libgurobi90: DSP only supports version 9 or later.")
message(FATAL_ERROR "Could NOT find libgurobi91: DSP only supports version 9 or later.")
endif()
endif()

Expand Down
30 changes: 30 additions & 0 deletions examples/dro/drfarmer.cor
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
*23456789 123456789 123456789 123456789 123456789 123456789
NAME FARMER
ROWS
N OBJROW
L cons0
G cons1
G cons2
L cons3
COLUMNS
x0 OBJROW 150 cons0 1
x0 cons1 3
x1 OBJROW 230 cons0 1
x1 cons2 3.6
x2 OBJROW 260 cons0 1
x2 cons3 -24
x3 OBJROW 238 cons1 1
x4 OBJROW 210 cons2 1
x5 OBJROW -170 cons1 -1
x6 OBJROW -150 cons2 -1
x7 OBJROW -36 cons3 1
x8 OBJROW -10 cons3 1
RHS
RHS1 cons0 500.5 cons1 200
RHS1 cons2 240
BOUNDS
UI BOUND x0 1e+30
UI BOUND x1 1e+30
UI BOUND x2 1e+30
UP BOUND x7 6000
ENDATA
16 changes: 16 additions & 0 deletions examples/dro/drfarmer.sto
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
*23456789 123456789 123456789 123456789 123456789 123456789
STOCH FARMER
SCENARIOS
SC SCEN01 ROOT 0.5 PERIOD2
x0 cons1 3
x1 cons2 3.6
x2 cons3 -24
SC SCEN02 ROOT 0.5 PERIOD2
x0 cons1 2.5
x1 cons2 3
x2 cons3 -20
SC SCEN03 ROOT 0 PERIOD2
x0 cons1 2
x1 cons2 2.4
x2 cons3 -16.
ENDATA
6 changes: 6 additions & 0 deletions examples/dro/drfarmer.tim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*23456789 123456789 123456789 123456789 123456789 123456789
TIME FARMER
PERIODS IMPLICIT
x0 OBJROW PERIOD1
x3 cons1 PERIOD2
ENDATA
9 changes: 9 additions & 0 deletions examples/quad/drfarmer.cor
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
NAME FARMER
ROWS
L QC0
COLUMNS
RHS
RHS QC0 1600
QCMATRIX QC0
x5 x5 1
ENDATA
9 changes: 9 additions & 0 deletions examples/quad/drfarmer.sto
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
STOCH FARMER
SCENARIOS
SC SCEN01 ROOT 0.5 PERIOD2
x5 x5 QC0 1
SC SCEN02 ROOT 0.5 PERIOD2
x5 x5 QC0 1
SC SCEN03 ROOT 0.0 PERIOD2
x5 x5 QC0 1
ENDATA
6 changes: 6 additions & 0 deletions examples/quad/drfarmer.tim
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
*23456789 123456789 123456789 123456789 123456789 123456789
TIME FARMER
PERIODS IMPLICIT
QC0 PERIOD1
QC0 PERIOD2
ENDATA
8 changes: 4 additions & 4 deletions examples/quad/farmer4.cor
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ ROWS
COLUMNS
RHS
RHS QC0 1600
RHS QC1 3600
RHS QC1 6400
RHS QC2 1600
QCMATRIX QC0
x1 x1 1
x5 x5 2
QCMATRIX QC1
x1 x1 2
x2 x2 1
QCMATRIX QC1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gbyeon looks like you already implemented some code to parse this?

x1 x1 1
x5 x5 2
QCMATRIX QC2
x5 x5 1
ENDATA
2 changes: 1 addition & 1 deletion examples/quad/farmer4.tim
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
TIME FARMER
PERIODS IMPLICIT
QC0 PERIOD1
QC2 PERIOD2
QC1 PERIOD2
ENDATA
4 changes: 2 additions & 2 deletions src/DspCInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ int readDro(DspApiEnv * env, const char * dro)
}

/** read quad files */
int readQuad(DspApiEnv * env, const char * smps, const char * quad)
int readQuad(DspApiEnv * env, const char * smps, const char * quad, bool chg_to_socp)
{
return getTssModel(env)->readQuad(smps, quad);
return getTssModel(env)->readQuad(smps, quad, chg_to_socp);
}

/** load first-stage problem */
Expand Down
2 changes: 1 addition & 1 deletion src/DspCInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int readSmps(DspApiEnv * env, const char * smps);
int readDro(DspApiEnv * env, const char * dro);

/** read quad files */
int readQuad(DspApiEnv * env, const char * smps, const char * quad);
int readQuad(DspApiEnv * env, const char * smps, const char * quad, bool chg_to_socp = true);

/** load first-stage problem */
void loadFirstStage(
Expand Down
Loading