Skip to content

Instantly share code, notes, and snippets.

@jmmshn
Created October 17, 2022 06:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmmshn/669558a308524b1b2baccc8e51bdc908 to your computer and use it in GitHub Desktop.
Save jmmshn/669558a308524b1b2baccc8e51bdc908 to your computer and use it in GitHub Desktop.
dextra_orderbook_2node_stable
model, bought, sold, price = construct_model(total_trade_volume, orderbook)
@constraint(model, price[1] == 1)
optimize!(model)
summarize(orderbook, bought, sold, price)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment