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

Allow building and solving models iteratively #6

Open
coroa opened this issue May 27, 2019 · 1 comment
Open

Allow building and solving models iteratively #6

coroa opened this issue May 27, 2019 · 1 comment

Comments

@coroa
Copy link
Member

coroa commented May 27, 2019

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

@fneum
Copy link
Member

fneum commented May 28, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants