Examples¶
Here we give some examples for running DSP
with the executable file.
The examples are given with --algo dd
(i.e., using the dual decomposition), but can be easily modified to use the other algorithms (e.g., bd
, dw
) with argument --algo
.
Example: Wasserstein DRO
This example solves the distributionall robust optimization (DRO) of farmer
example, where the Wasserstein ambiguity set is of order 2
with the size 0.1
.
1 2 3 4 5 6 |
|
1 2 3 4 5 6 |
|
Example: Stochastic MIQCP
This examples solves the two-stage stochastic mixed-integer quadratically constrained program (MIQCP) of farmer
example.
The quadratic constraints are defined in ../example/farmer.txt
.
1 2 3 4 5 |
|
1 2 3 4 5 |
|
Info
As a special case, the stochastic mixed-integer linear program can be set by omitting argument --quad
.
Example: Generic structured program
This example solves a generic block-angular structure problem written in files noswot.mps
and noswot.dec
.
1 2 3 4 5 |
|
1 2 3 4 5 |
|