Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
sshin23 committed Apr 12, 2024
1 parent 7c7fad3 commit 5a26eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/jump.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ em = ExaModel(jm; backend = CUDABackend())
# Here, note that only scalar objective/constraints created via `@constraint` and `@objective` API are supported. Older syntax like `@NLconstraint` and `@NLobjective` are not supported.
# We can solve the model using any of the solvers supported by ExaModels. For example, we can use MadNLP:

using MadNLP, MadNLPGPU
using MadNLPGPU

result = madnlp(em)

Expand All @@ -31,7 +31,7 @@ result = madnlp(em)
# Alternatively, one can use the `Optimizer` interface provided by `ExaModels`. This feature can be used as follows.

using ExaModels, JuMP, CUDA
using MadNLP, MadNLPGPU
using MadNLPGPU

set_optimizer(jm, () -> ExaModels.MadNLPOptimizer(CUDABackend()))
optimize!(jm)
Expand Down

0 comments on commit 5a26eb4

Please sign in to comment.