Skip to content

Default variable lower bound set to -∞ #65

@LucasBoTang

Description

@LucasBoTang

In src/cupdlpx.c around line 113, the following code initializes the variable lower bounds:

fill_or_copy(&prob->variable_lower_bound, prob->num_variables, var_lb, -INFINITY);

This means that by default, all decision variables are treated as free (unbounded below) unless the user explicitly specifies lower bounds.

While this is mathematically valid, it may be counterintuitive for many users, since variables are nonnegative by default in most solvers such as Gurobi, CPLEX, HiGHS, and GLPK.

Metadata

Metadata

Assignees

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