You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -788,14 +788,15 @@ One can refer to their respective solver's documentation to know which options e
788
788
The `show_online_optim` parameter can be set to `True` so the graphs nicely update during the optimization with the default values.
789
789
One can also directly declare `online_optim` as an `OnlineOptim` parameter to customize the behavior of the plotter.
790
790
Note that `show_online_optim` and `online_optim` are mutually exclusive.
791
-
Please also note that `OnlineOptim.MULTIPROCESS` is not available on Windows and only none of them are available on Macos.
792
-
To see how to run the server on Windows, please refer to the `getting_started/pendulum.py` example.
791
+
Please also note that `OnlineOptim.MULTIPROCESS` is not available on Windows or Macos.
792
+
On Macos, the default backend is `OnlineOptim.MULTIPROCESS_SERVER`, while `OnlineOptim.SERVER` remains available if one wants to start `resources/plotting_server.py` manually.
793
+
To see how to run the server explicitly, please refer to the `resources/plotting_server.py` example.
793
794
It is expected to slow down the optimization a bit.
794
795
`show_options` can be also passed as a dict to the plotter to customize the plotter's behavior.
795
796
If `online_optim` is set to `SERVER`, then a server must be started manually by instantiating an `PlottingServer` class (see `ressources/plotting_server.py`).
796
797
The following keys are additional options when using `OnlineOptim.SERVER` and `OnlineOptim.MULTIPROCESS_SERVER`:
797
798
-`host`: the host to use (default is `localhost`)
798
-
-`port`: the port to use (default is `5030`)
799
+
-`port`: the port to use (default is `5030` for `OnlineOptim.SERVER` and a random available port for `OnlineOptim.MULTIPROCESS_SERVER`)
799
800
800
801
If you want to see IPOPT's iterations over the course of the resolution of your opc, it is possible using the following:
801
802
```python
@@ -1720,7 +1721,7 @@ The type of online plotter to use.
1720
1721
1721
1722
The accepted values are:
1722
1723
NONE: No online plotter.
1723
-
DEFAULT: Use the default online plotter depending on the OS (MULTIPROCESS on Linux, MULTIPROCESS_SERVER on Windows and NONE on MacOS).
1724
+
DEFAULT: Use the default online plotter depending on the OS (MULTIPROCESS on Linux, MULTIPROCESS_SERVER on Windows and macOS).
1724
1725
MULTIPROCESS: The online plotter is in a separate process.
1725
1726
SERVER: The online plotter is in a separate server.
1726
1727
MULTIPROCESS_SERVER: The online plotter using the server automatically setup on a separate process.
# # --- Saving the solver's output after the optimization --- #
189
-
# Here is an example of how we recommend to save the solution. Please note that sol.ocp is not picklable and that sol will be loaded using the current bioptim version, not the version at the time of the generation of the results.
191
+
# # Here is an example of how we recommend to save the solution. Please note that sol.ocp is not picklable and that sol will be loaded using the current bioptim version, not the version at the time of the generation of the results.
0 commit comments