Extracting data vectors in constraint from sum notation in JuMP

You can get the matrix following your PDHG question: Connecting a simple first-order solver to solve standard form linear program to JuMP

You can use x = all_variables(model).

1 Like