Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9.6v Ignoring pseudo_costs subsolver returns Invalid parameters. #3706

Closed
Krabii opened this issue Mar 13, 2023 · 1 comment
Closed

9.6v Ignoring pseudo_costs subsolver returns Invalid parameters. #3706

Krabii opened this issue Mar 13, 2023 · 1 comment
Assignees
Labels
Bug Lang: Python Python wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver
Milestone

Comments

@Krabii
Copy link

Krabii commented Mar 13, 2023

What version of OR-Tools and what language are you using?
Version: v9.6
Language: Python 3.8

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)

CP-SAT

What operating system (Linux, Windows, ...) and version?

Linux Ubuntu 20.20

What did you do?

Added pseudo_costs in ignored_subsolvers list:

solver.parameters.ignore_subsolvers.append('pseudo_costs')

What did you expect to see

What did you see instead?

An error message is returned:

"Invalid parameters: subsolver 'pseudo_costs' is not valid"

Make sure you include information that can help us debug (full error message, model Proto).

The below will work in 9.5v but not in 9.6v

from ortools.sat.python import cp_model

model = cp_model.CpModel()

x = model.NewIntVar(0, 10, 'x')
model.Add(x <= 9)
model.Maximize(x)

solver = cp_model.CpSolver()
solver.parameters.log_search_progress = True
solver.parameters.ignore_subsolvers.append('pseudo_costs')

solver.Solve(model)

Anything else we should know about your project / environment

@Mizux Mizux added Bug Lang: Python Python wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver labels Mar 13, 2023
@Mizux Mizux added this to the v9.7 milestone Mar 13, 2023
@lperron
Copy link
Collaborator

lperron commented Mar 13, 2023

Indeed. My bad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Lang: Python Python wrapper issue Solver: CP-SAT Solver Relates to the CP-SAT solver
Projects
None yet
Development

No branches or pull requests

3 participants