DSPopt.MethodsType
Methods

List of methods available.

  • ExtensiveForm: deterministic equivalent formulation solve
  • Benders: Benders decomposition
  • DW: Dantzig-Wolfe decomposition
  • Dual: Dual decomposition
DSPopt.getBlockIdsFunction
getBlockIds

Get the vector of block IDs that are assigned to the current MPI rank

Arguments

  • nblocks: number of blocks (by default, DSPProblem.nblocks)
  • master_has_subblocks: indicate whether the master process solves (scenario) blocks or not (should always be false). This should not be modified.
DSPopt.loadStochasticProblem!Method
loadStochasticProblem!

Load stochastic programming problem from StructJuMP

Arguments

  • model: StructJuMP model
DSPopt.loadStructuredProblem!Method
loadStructuredProblem!

Load generic block-structured problem from StructJuMP

Arguments

  • model: StructJuMP model
DSPopt.load_problem!Method
load_problem!

Load problem from StructJuMP

Arguments

  • m: StructJuMP model
DSPopt.myrankMethod
myrank

Returns the MPI rank (i.e., process id), starting from 0

DSPopt.mysizeMethod
mysize

Returns the number of MPI processes

DSPopt.parallelizeMethod
parallelize

Initialize DSP environment related to MPI, if MPI is initialized.

DSPopt.setMethod
set

Set the parameters for Wasserstein ambiguity set

Arguments

  • dsp: DSPProblem struct
  • p: norm of the Wasserstein distance
  • ϵ: the size of the Wasserstein ball
DSPopt.setBlocksMethod
setBlocks

The function sets the number of blocks (e.g., scenarios for stochastic program) and their Ids.

DSPopt.setoptions!Method
setoptions!

This takes options arguments for setting DSP options.

Arguments

  • options: possible keys are :param (path to parameter file), :is_stochastic (true if stochastic model; otherwise, false), and :solve_type (algorithm type; see Methods).
DSPopt.writeMps!Method
writeMps!

Write the deterministic equivalent formulation in MPS format.