Skip to content

Commit

Permalink
Merge pull request #193 from resibots/fix-quickstart [ci skip]
Browse files Browse the repository at this point in the history
Fix quickstart
  • Loading branch information
costashatz authored Oct 24, 2016
2 parents 98dd32e + 1a6f8aa commit 0fb13c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/tutorials/quick_start.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ For Ubuntu / Debian:
./configure -with-cxx --enable-shared --without-python --without-matlab --without-octave
sudo make install
sudo ldconfig
cd ..

For OSX:
::
Expand All @@ -43,13 +44,17 @@ For OSX:
tar -zxvf nlopt-2.4.2.tar.gz && cd nlopt-2.4.2
./configure --with-cxx --enable-shared --without-python --without-matlab --without-octave
sudo make install
cd ..


For more options and troubleshooting, see the :ref:`Compilation tutorial <compilation-tutorial>`.

Compile Limbo
-----------------

To get **limbo**, simply clone the source code from https://github.com/resibots/limbo with git, or download it
as a zip. To compile it:

::

./waf configure
Expand Down
2 changes: 1 addition & 1 deletion waf_tools/exp_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct Params {
#endif

struct bayes_opt_bobase : public defaults::bayes_opt_bobase {
@BAYES_OPT_BOBASE_STATS_ENABLED
@BAYES_OPT_BOBASE_STATS_DISABLED
};

struct kernel_exp : public defaults::kernel_exp {
Expand Down
4 changes: 2 additions & 2 deletions waf_tools/limbo.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def add_create_options(opt):
opt.add_option('--dim_in', type='int', dest='dim_in', help='Number of dimensions for the function to optimize [default: 1]')
opt.add_option('--dim_out', type='int', dest='dim_out', help='Number of dimensions for the function to optimize [default: 1]')
opt.add_option('--bayes_opt_boptimizer_noise', type='float', dest='bayes_opt_boptimizer_noise', help='Acquisition noise of the function to optimize [default: 1e-6]')
opt.add_option('--bayes_opt_bobase_stats_enabled', action='store_true', dest='bayes_opt_bobase_stats_enabled', help='Enable statistics [default: true]')
opt.add_option('--bayes_opt_bobase_stats_disabled', action='store_true', dest='bayes_opt_bobase_stats_disabled', help='Disable statistics [default: false]')
opt.add_option('--init_randomsampling_samples', type='int', dest='init_randomsampling_samples', help='Number of samples used for the initialization [default: 10]')
opt.add_option('--stop_maxiterations_iterations', type='int', dest='stop_maxiterations_iterations', help='Number of iterations performed before stopping the optimization [default: 190]')

Expand Down Expand Up @@ -117,7 +117,7 @@ def create_exp(name, opt):

cpp_params = {}
cpp_params['BAYES_OPT_BOPTIMIZER_NOISE'] = ' BO_PARAM(double, noise, ' + str(opt.bayes_opt_boptimizer_noise) + ');\n ' if opt.bayes_opt_boptimizer_noise and opt.bayes_opt_boptimizer_noise >= 0 else ''
cpp_params['BAYES_OPT_BOBASE_STATS_ENABLED'] = '' if opt.bayes_opt_bobase_stats_enabled else ' BO_PARAM(bool, stats_enabled, false);\n '
cpp_params['BAYES_OPT_BOBASE_STATS_DISABLED'] = ' BO_PARAM(bool, stats_enabled, false);\n ' if opt.bayes_opt_bobase_stats_disabled else ''
cpp_params['INIT_RANDOMSAMPLING_SAMPLES'] = ' BO_PARAM(int, samples, ' + str(opt.init_randomsampling_samples) + ');\n ' if opt.init_randomsampling_samples and opt.init_randomsampling_samples > 0 else ''
cpp_params['STOP_MAXITERATIONS_ITERATIONS'] = ' BO_PARAM(int, iterations, ' + str(opt.stop_maxiterations_iterations) + ');\n ' if opt.stop_maxiterations_iterations and opt.stop_maxiterations_iterations > 0 else ''

Expand Down

0 comments on commit 0fb13c0

Please sign in to comment.