Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7971607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:40:31+00:00 2026-06-04T07:40:31+00:00

I need to make a linear programming model. Here are the inequalities I’m using

  • 0

I need to make a linear programming model. Here are the inequalities I’m using (for example):

6x + 4y <= 24
x + 2y <= 6
-x + y <= 1
y <= 2

I need to find the area described by these inequalities, and shade it in a graph, as well as keep track of the vertices of the bounding lines of this area, and draw the bounding line in a different color. See the graph below for an example of what I’m looking for.

image of the points of intersection.

I’m using Python 3.2, numpy, and matplotlib. Are there better modules for linear programming in Python?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T07:40:33+00:00Added an answer on June 4, 2026 at 7:40 am

    UPDATE: The answer has become somewhat outdated in the past 4 years,
    here is an update. You have many options:

    • If you do not have to do it Python then it is a lot more easier to
      do this in a modeling langage, see Any good tools to solve
      integer programs on linux?

    • I personally use Gurobi these
      days through its Python API. It is a commercial, closed-source
      product but free for academic research.

    • With PuLP you can create MPS and LP files and then
      solve them with GLPK, COIN CLP/CBC, CPLEX, or XPRESS through their
      command-line interface. This approach has its advantages and
      disadvantages.

    • The OR-Tools from Google is an open source software suite for optimization, tuned for tackling the world’s toughest problems in vehicle routing, flows, integer and linear programming, and constraint programming.

    • Pyomo is a Python-based, open-source optimization modeling language with a diverse set of optimization capabilities.

    • SciPy offers linear programming: scipy.optimize.linprog. (I have
      never tried this one.)

    • Apparently, CVXOPT offers a Python interface to GLPK, I did
      not know that. I have been using GLPK for 8 years now and I can
      highly recommend GLPK. The examples and tutorial of CVXOPT seem really nice!

    • You can find other possibilites at in the Wikibook under
      GLPK/Python. Note that many of these are not necessarily resticted
      to GLPK.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using Armadillo lib for linear algebra and i'm new to c++. need to
I need to make a div layer so that when you click on it
I need to make this function work everywhere, except IE6-7 $(function(){ window.scrollTo(0,300); }) Please
i need to make my window top level when i need. Code of creating
I need to make a column unique in one of our database tables, and
I need to make a proxy script that can access a page hidden behind
I need to make some changes to an old Oracle stored procedure on an
I need to make custom text field which will format numeric values according to
I need to make a stored procedure or function that returns a set of
I need to make a cURL request to a https URL, but I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.