Skip to main content
Gurobi Help Center Help Center home page
  • Status
  • Community
  • Get Help
  • 日本語
  • Sign in
  • Sign in
  • Status
  • Community
  • Get Help
  • 日本語
  1. Gurobi Help Center
  2. Knowledge Base
  3. Modeling
  4. Matrix-oriented modeling: the Python Matrix API

Matrix-oriented modeling: the Python Matrix API

The Python Matrix API greatly improves and simplifies the process of building optimization models when working with matrix and vector data structures.

  • How do I pointwise multiply two MVars with the matrix-friendly Python API?
  • How do I pointwise multiply an array and an MVar with the matrix-friendly Python API?
  • How do I pointwise multiply a numpy vector with a (1,) MVar with the matrix-friendly Python API?
  • How do I multiply two MLinExpr objects together with the matrix-friendly Python API?
  • How do I multiply an array and a 2-D MVar object using the matrix-friendly Python API?
  • What should I do upon "RuntimeWarning: Chained matrix multiplications of MVars..."
© Gurobi Optimization, LLC. All rights reserved.