Skip to main content

Turning 1D MVar into a diagonal matrix

Answered

Comments

3 comments

  • Official comment
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Riley Clement
    • Gurobi Staff

    Hi Gabriel,

    I think

    E*K.reshape(N_1,1)

    is what you are looking for.

    - Riley

     

    0
  • Gabriel Agostini
    • Gurobi-versary
    • First Comment
    • First Question

    Thanks Riley Clement ! That works

    0

Post is closed for comments.