Metadata-Version: 2.1
Name: safeOptimization
Version: 0.0.3
Summary: A package for safe optimization algorithms.
Home-page: https://github.com/m5a0r7/safeOpt
Author: Mohammad Amin Roohi
Author-email: m5a0r7@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
License-File: LICENSE

## Safe optimization python package

This version contain sLBM and SAFW algorithm. 

.. code-block:: bash

    >>> import safeOpt
    
    >>> def ask_constraints(x):
        '''will return a list of the values of constraints at x_t'''
        y = [-5 - x[0], -5 - x[1], x[0] - 5, x[1] - 5]
        return y
        
    >>> def ask_objective_func(x):
        '''will return the value of objective function at x_t'''
        y = -1*(x[0] - 1)**3 + 2 -1*(x[0] - 1)**2
        return y**2
        
    >>> model = safeOpt.logBarrier.sLBM(ask_objective_func, ask_constraints, dimension = 2, constraints_number = 4, x_0 = np.array([0,0]))
    >>> model.run()
        
