solver

Cplex optimization program returns results equal to zero

Cplex optimization program returns results equal to zero Question: I am currently working on an optimization problem in which a lake has 150 units of water. I am paid 3$ for each unit of water sold, but I need to guarantee that 100 units of water will remain at the end of the month or …

Total answers: 2

Solving 2D maze, how to avoid runtime error for hidden test case?

Solving 2D maze, how to avoid runtime error for hidden test case? Question: There are two test cases with this problem, the first test case is shown below and the second is a hidden test case that I still can’t access. The first test case works perfectly however the second test case is showing me …

Total answers: 1

Solve an equation and plot the results in python

Solve an equation and plot the results in python Question: Let’s assume I have an equation, such as 10 * x ** 2 – 7 * x + 3 == 2 * y + y ** 2 I want to solve it for y, then plot y vs x for x from 0 to 1. …

Total answers: 2

true odds: sympy solver with multiple equations and variables

true odds: sympy solver with multiple equations and variables Question: I’m trying to calculate the 3-way true odds based on given odds according to this methodology: I’m trying to do this with the python sympy module with the following code: x, y, z, p, q, r, n = symbols(‘x, y, z, p, q, r, n’, …

Total answers: 1

How to set Pyomo solver timeout?

How to set Pyomo solver timeout? Question: How to set the timeout for Pyomo solve() method ? More specifically, to tell pyomo, after x seconds, return the optimal solution currently found ? Asked By: zyzo || Source Answers: So I was able to find the answer via pyomo documentation and I thought it would be …

Total answers: 2