Inequality class.
More...
#include <Inequality.hpp>
◆ Inequality() [1/2]
| ZonoOpt::Inequality::Inequality |
( |
const int |
n_dims | ) |
|
|
inlineexplicit |
Constructs inequality, must specify number of dimensions.
- Parameters
-
| n_dims | number of dimensions in inequality |
◆ Inequality() [2/2]
| ZonoOpt::Inequality::Inequality |
( |
const int |
n_dims, |
|
|
const std::vector< IneqTerm > & |
terms, |
|
|
const zono_float |
rhs, |
|
|
const IneqType |
type |
|
) |
| |
|
inline |
Constructs inequality with all quantities specified.
- Parameters
-
| n_dims | number of dimensions in inequality |
| terms | vector of terms in inequality |
| rhs | right-hand side of the inequality |
| type | inequality type (e.g., less than or equal, greater than or equal, or equal) |
◆ add_term()
| void ZonoOpt::Inequality::add_term |
( |
const int |
idx, |
|
|
const zono_float |
coeff |
|
) |
| |
|
inline |
Adds a term to the inequality.
- Parameters
-
| idx | variable index |
| coeff | coefficient |
◆ get_ineq_type()
| IneqType ZonoOpt::Inequality::get_ineq_type |
( |
| ) |
const |
|
inline |
Get inequality type / direction.
- Returns
- inequality type (type member)
◆ get_n_dims()
| int ZonoOpt::Inequality::get_n_dims |
( |
| ) |
const |
|
inline |
Get number of dimensions for inequality.
- Returns
- number of dimensions (n_dims member)
◆ get_rhs()
Get right hand side of the inequality.
- Returns
- right hand side value (rhs member)
◆ get_terms()
| const std::vector< IneqTerm > & ZonoOpt::Inequality::get_terms |
( |
| ) |
const |
|
inline |
Get reference to terms in the inequality.
- Returns
- reference to terms member
◆ set_ineq_type()
| void ZonoOpt::Inequality::set_ineq_type |
( |
const IneqType |
type | ) |
|
|
inline |
Sets the direction of the inequality or sets it to be an equality.
- Parameters
-
| type | inequality type (e.g., less than or equal, greater than or equal, or equal) |
◆ set_rhs()
| void ZonoOpt::Inequality::set_rhs |
( |
const zono_float |
rhs | ) |
|
|
inline |
Set the right hand side of the inequality.
- Parameters
-
The documentation for this class was generated from the following file: