linear-programming Questions

4

Solved

after setting the objective function and constraints, i use prob.solve() print prob.solution.get_objective_value() actually, I just want to print the objective value, however, it displays a lot ...

3

I use web.py to create a Python web server. This server is called to solve linear programming problems, and it uses the library CBC to do that. Every once in a while, the server crashes with a log...
Dahna asked 6/6, 2016 at 12:26

10

Solved

I'm trying to use the GLPK solver with Pyomo. I have a working model that's been tested, but keep getting an error saying GLPK can't be found. WARNING: Could not locate the 'glpsol' executable,...
Pascoe asked 31/8, 2015 at 16:46

4

Solved

EDIT (31-12-2019) - https://jonathan.overholt.org/projects/cutlist Above is the link of the free project which is what exactly I am looking for. I am just looking for proper guidance so that I can...
Enravish asked 12/7, 2019 at 5:39

3

I need to implement a solver for linear programming problems. All of the restrictions are <= ones such as 5x + 10y <= 10 There can be an arbitrary amount of these restrictions. Also , x>=0...
Zonazonal asked 13/7, 2019 at 8:25

4

I've been using PuLP to solve a particular mixed integer linear program (MIP) I am interested in. However, as the problem size grows, PuLP is taking too long. I want to be able to run the solver fo...
Romaic asked 27/12, 2017 at 1:11

1

I am struggling with minimize (method=SLSQL) and need help. This is a simplified car battery (dis)charging problem to prop up the power grid during reduced stability (peak demand). What I expect to...
Bashee asked 18/1, 2023 at 11:14

8

Solved

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 ...
Khat asked 22/5, 2012 at 7:56

3

Solved

Are there any Mixed Integer Linear Programming(MILP) solver for Python? Can GLPK python solve MILP problem? I read that it can solve Mixed integer problem. I am very new to linear programming prob...
Moxa asked 10/10, 2014 at 18:22

1

Solved

I'm trying to use linear optimisation to minimise the size of solar PV and battery for an off-grid property. I have solar irradiance data and household energy consumption data - I have created a ye...

3

I am designing a layout engine for ZenUML. One requirement (after simplification) is this: There a line segment; There are n (n < 100, it can be reduced to n < 30 if that makes difference in...
Velarium asked 8/2, 2022 at 22:31

3

How do i get the value of the variable that i have define previously(using addVar) in gurobi python? I need to compare the value of the gurobi variable and then perform calculations to reach to my ...

3

I have a Python script in which I need to solve a linear programming problem. The catch is that the solution must be binary. In other words, I need an equivalent of MATLAB's bintprog function. NumP...
Paraboloid asked 24/7, 2010 at 17:22

1

Here is a simple example of solving the system of linear equations and the example of using for loop for many equations. import numpy as np from gekko import GEKKO m = GEKKO(remote=False) # Rando...
Pithecanthropus asked 22/4, 2021 at 17:1

3

Solved

what is the difference between Constraint Programming (CP) and Linear Programming (LP) or Mixed Integer Programming (MIP) ? I know what LP and MIP is but dont understand the difference to CP - or i...

2

Solved

In order not to reinvent the wheel I tried to find some code to parse Mathematical Programming System files but I didnt find any implementations in python. Is there any code allready available f...
Messily asked 15/11, 2017 at 11:38

1

Solved

I was working on a sample MIP program, a selection of a coed sports team starting lineup, and found a small example that comes up with a non-optimal result in Google OR-tools. The basics: Choose 5 ...

3

Solved

I've got a table of clients (coper) and asset allocation (asset) A = [[1,2],[3,4],[5,6]] idx = ['coper1','coper2','coper3'] cols = ['asset1','asset2'] df = pd.DataFrame(A,index = idx, columns = c...
Iqbal asked 25/5, 2018 at 12:15

2

I'm trying to find the best possible combination that will maximize my sum value, but it has to be under 2 specific constraints, therefore I am assuming Linear programming will be the best fit. The...
Domitian asked 14/10, 2020 at 15:11

2

Solved

Assume the input is specified as an array of building objects, where each building has a number of residents an its distance from the start of the street. Total distance = SUM(distance[i] * #resid...
Keppel asked 23/6, 2017 at 16:1

3

Solved

I would like to look at a couple of implementations of IPMs. The languages preferable are C/C++, Java or any scripting languages like python, perl. Others are also fine. I am searching for a good ...

4

Solved

This could be an annoying question. But I was hoping someone could provide me with step by step instructions on how to get GLPK up and running on a Windows machine. I have Windows 7 64-bit. I have...
Coverdale asked 7/7, 2013 at 15:51

2

Solved

I coded my model in gurobipy and I want to get the matrix of constraints and vector of cost. Is there any way to access those?

3

Solved

Is there an extension of the Hungarian algorithm that caters for the assignment of multiple jobs per worker? In its simplest form, the algorithm assigns a single job to a single worker. My applic...
Illuviation asked 5/1, 2018 at 6:42

0

I'm trying to follow the instructions to install the MIPCL-PY API of the MIPCL solver (https://github.com/onebitbrain/MIPCL/tree/master/mipcl_py), about which I've heard it is a good open-source al...
Cudlip asked 22/1, 2020 at 2:32

© 2022 - 2024 — McMap. All rights reserved.