Assigning solver options using Python. #2051
Replies: 1 comment 4 replies
-
You can't set options this way, although there is some argument for You need to make an explicit call to
Call
However the IPM solver is serial
Call
Call
However, if you're wanting to do this so that you can use costs or bounds greater than 1e15, I strongly advise you not to, as you increase the danger of the solver failing. You should rescale your variables and constraints so that the costs and bounds are rather less than 1e15. Remember that HiGHS will be solving your model using primal/dual tolerances of 1e-7 using double precision (16-digit arithmetic) arithmetic, so costs/bounds greater than 1e16*1e-7=1e9 are asking for trouble |
Beta Was this translation helpful? Give feedback.
-
Hi. I am a complete beginner to using the HIGHS solver.
I am using it to solve a mps file using Python.
I have a very simple script, inspired from your documentation.
I have a few questions in this regard:
I read here that it is possible to use the interior point method for solving the problem. Is the default method simplex? What is the syntax for it? I tried
h.run(solver = "ipm")
, but I get TypeError with it.How can I set the
parallel
parameter in the above Python script? For ipm, is it off by default?How can I set
run_crossover
parameter to off in the above Python script? I see the crossover is set to on as default.How can I set
infinite_cost
parameter andinfinite_bound
parameter using Python?Beta Was this translation helpful? Give feedback.
All reactions