Skip to content

[QST]: CUOPT_MIP_RELATIVE_GAP cannot be set in MILP solving config #69

@bzk226

Description

@bzk226

What is your question?

data = {
    "csr_constraint_matrix": {
        "offsets": [0, 2],
        "indices": [0, 1],
        "values": [1.0, 1.0]
    },
    "constraint_bounds": {
        "upper_bounds": [5000.0],
        "lower_bounds": [0.0]
    },
    "objective_data": {
        "coefficients": [1.2, 1.7],
        "scalability_factor": 1.0,
        "offset": 0.0
    },
    "variable_bounds": {
        "upper_bounds": [3000.0, 5000.0],
        "lower_bounds": [0.0, 0.0]
    },
    "maximize": True,
    "variable_names": ["x", "y"],
    "variable_types": ["I", "I"]
    "solver_config":{
        "time_limit": 30,
        'heuristics_only': False,  
        "mip_relative_gap": 0.01 
    }
}

solution = cuopt_service_client.get_LP_solve(data, response_type="dict")

'mip_relative_gap' was considered as extra inputs. How to set relative gap for MILP problems?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions