EnergyModels.jl icon indicating copy to clipboard operation
EnergyModels.jl copied to clipboard

Allow building and solving models iteratively

Open coroa opened this issue 6 years ago • 1 comments

Perhaps with some sort of callback to update some parameters/variables.

coroa avatar May 27 '19 14:05 coroa

To set warmstart of a model with solution of previous iteration:

set_start_value.(all_variables(model), value.(all_variables(model)))

To set a new coefficient in a model (e.g. changed line impedance):

@constraint(model, con, 2x <= 1)
set_coefficient(con, x, 3)

fneum avatar May 28 '19 19:05 fneum