Questions tagged [pyscipopt]

Used for all problems and questions regarding PySCIPOpt, the Python interface to the SCIP Optimization Suite.

PySCIPOpt is the Python interface to the SCIP Optimization Suite for modeling and solving MINLP problems.

Installation via PyPI or conda:

  • pip install pyscipopt
  • conda install pyscipopt
37 questions
0
votes
1 answer

writeBestSol method not working in pyscipopt

I want to get a solution of one optimization problem, and use it to warm start another problem. from pyscipopt import Model model = Model("Example") x = model.addVar("x") y = model.addVar("y", vtype="INTEGER") model.setObjective(x +…
optimal-br
  • 49
  • 5
0
votes
1 answer

Setting constraints with variables as exponents in PySCIPOpt

I want to solve an MINLP problem with SCIP in Python and therefore use PySCIPOpt. I already introduced the variables, the objective function, and set the constraints (as far as it was possible, given my issue). Within one constraint, there is a…
LukPau
  • 23
  • 2
0
votes
1 answer

How to use PySCIPOpt for feasibility-only problem

I have used CVXPY and some of its LP solvers to determine whether a solution to an A*x <= b problem is feasible, and now I would like to try PySCIPOpt. I could not find an example of this in the docs, and I'm having trouble figuring out the right…
kevinafra
  • 11
  • 3
0
votes
0 answers

Is there a better way to solve this MINLP in pyscipopt?

I'm trying to solve the following MINLP, basically attempting to maximize the likelihood of a certain portfolio reaching a "ceiling" performance. My first attempt at the code is below. EDIT: Math says maximize, should say minimize from pyscipopt…
0
votes
1 answer

In pyscipopt, would it be possible to use a function containing an optimization model inside of my main optimization model?

I am using Jupyter Notebook. I have tried defining a function with an optimization model, it seems to work outside of my main model. When I tried using the function on a variable inside my main model, at first the kernel dies, when I have updated…
-1
votes
1 answer

Installation error for PySCIPOpt in vscode Mac Ventura OS

I am working on a Mixed Interger Linear Programming problem. I wanted to use SCIP solver to find the optimised solution for my problem. I was trying to install "PySCIPOpt" package in vscode which resulted in the following error. error while running…
-1
votes
1 answer

BESTSOLFOUND event handler on PySCIPopt

I am working on the problem in which I am willing to check and test some of the SCIP's event handlers. I see this SCIP document page and have some questions: Do the event handlers callbacks return with something that may be printable? or just for…
A.Omidi
  • 113
  • 7
1 2
3