Skip to content

Commit

Permalink
[docs] Add troubleshooting for long names in the solver (#1134)
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada authored Nov 12, 2024
1 parent a4e4798 commit 900263d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/src/getting_started/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ Have you created a new project? File > New project
## I get an error that the 'model' object is not defined in the database
That tends to happen when you accidentally switched your input and output in the Run SpineOpt tool.

## Solver throws error `Name too long`
Variables and constraints names in SpineOpt sometimes can be longer than the maximum name length the solvers allow. If you get this error, we recommend using the solver parameters to run it ingnoring the names. For instance, Gurobi has the parameter `IgnoreNames` which allows to run without the names but returning the solution with the original names in the model.

To setup the solver parameters you can look at the [How-to section](@ref how-to-change-solver) guide change the solver and define its parameters.

## SpineOpt and SpineInterface are out of sync
Some of the development of SpineOpt depends on the development of SpineInterface and vice versa. At some points in time that can create an incompatibility between the two.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/how_to/change_the_solver.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# How to change the solver
# [How to change the solver](@id how-to-change-solver)

If you want to change the solver for your optimization problem in SpineOpt, here is some guidance:
- You can change the solvers in your input datastore using the `db_lp_solver` and `db_mip_solver` parameter values of the `model` object.
Expand Down

0 comments on commit 900263d

Please sign in to comment.