Skip to content

Commit

Permalink
Fix code indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelbailo committed Apr 30, 2024
1 parent 59b2b25 commit ccb8278
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ Most of the [CBXPy](https://pdips.github.io/CBXpy/) implementation uses basic Py
The library is available on [GitHub](https://github.com/pdips/CBXpy) and can be installed via `pip`. It is licensed under the MIT license. Below, we provide a short example on how to optimise a function with CBXPy.

```Python
from cbx.dynamics import CBO # import the CBO class
f = lambda x: x[0]**2 + x[1]**2 # define the function to minimise
x = CBO(f, d=2).optimize() # run the optimisation
from cbx.dynamics import CBO # import the CBO class
f = lambda x: x[0]**2 + x[1]**2 # define the function to minimise
x = CBO(f, d=2).optimize() # run the optimisation
```

More examples and details on the implementation are available in the [documentation](https://pdips.github.io/CBXpy/).
Expand All @@ -154,9 +154,9 @@ More examples and details on the implementation are available in the [documentat

Basic function minimisation can be performed by running:
```julia
using ConsensusBasedX # load the ConsensusBasedX package
f(x) = x[1]^2 + x[2]^2 # define the function to minimise
x = minimise(f, D = 2) # run the minimisation
using ConsensusBasedX # load the ConsensusBasedX package
f(x) = x[1]^2 + x[2]^2 # define the function to minimise
x = minimise(f, D = 2) # run the minimisation
```
The library is available on [GitHub](https://github.com/PdIPS/ConsensusBasedX.jl). It has been registered in the [general Julia registry](https://github.com/JuliaRegistries/General), and therefore it can be installed by running `]add ConsensusBasedX`. It is licensed under the MIT license. More examples and full instructions are available in the [documentation](https://pdips.github.io/ConsensusBasedX.jl/).

Expand Down

0 comments on commit ccb8278

Please sign in to comment.