Skip to content

Commit

Permalink
Merge pull request jump-dev#166 from JuliaOpt/faq
Browse files Browse the repository at this point in the history
WIP: New FAQ file
  • Loading branch information
mlubin committed Aug 6, 2014
2 parents 144536d + f7c819f commit cf5fd28
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions FAQ.md
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.


0 comments on commit cf5fd28

Please sign in to comment.