forked from jump-dev/JuMP.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request jump-dev#166 from JuliaOpt/faq
WIP: New FAQ file
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
JuMP | ||
==== | ||
#### Frequently Asked Questions | ||
|
||
**Q: I'm using a solver that supports warm-starts for integer problems. How do I communicate the initial solution to the solver?** | ||
|
||
A: You can use the ``setValue`` function on a variable to set its initial value, e.g. | ||
|
||
```julia | ||
@defVar(m, x[1:3], Int) | ||
setValue(x[1], 10.0) | ||
setValue(x[3], 2.0) | ||
``` | ||
|
||
If you don't set the value of a variable, the behaviour is solver-dependent. Some solvers attempt to "complete" solutions that aren't completely specified. | ||
|
||
|