baobabsoluciones/cornflow

Update PARAMETER_SOLVER_TRANSLATING_MAPPING for new Gurobi version

开放

#656 创建于 2025年6月18日

 (0 条评论) (0 个反应) (1 位负责人)Python (5 个派生)auto 404
clientgood first issue

仓库指标

星标
 (21 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is your feature request related to a problem? Please describe. Since version 12.0.1 of Gurobi, the solver no longer supports the "msg" parameter and instead uses "OutputFlag". This requires users to manually update their solver configurations, which is inconvenient and error-prone, especially when upgrading from older versions.

Describe the solution you'd like We propose adding a mapping from "msg" to "OutputFlag" in the PARAMETER_SOLVER_TRANSLATING_MAPPING dictionary. This would allow Cornflow to automatically translate legacy configuration parameters, avoiding the need for manual updates.

Describe alternatives you've considered The alternative is to manually replace "msg" with "OutputFlag" in all solver configurations. However, this adds maintenance overhead and may lead to confusion or mistakes for users updating their environments.

Additional context This change would simplify the migration process to Gurobi 12.0.1 by preserving compatibility with existing configuration files. It aligns with Cornflow's goal of providing abstraction over solver-specific parameter names.

贡献者指南