5 #include <unordered_map> 8 #pragma GCC diagnostic push 9 #pragma GCC diagnostic ignored "-Wold-style-cast" 11 #pragma GCC diagnostic pop 13 #include "dreal/solver/config.h" 15 #include "dreal/util/box.h" 16 #include "dreal/util/nnfizer.h" 25 const Box& box()
const;
34 const Box* box_{
nullptr};
35 std::unordered_map<Variable, Expression, hash_value<Variable>> gradient_;
37 friend std::ostream& operator<<(std::ostream& os,
41 std::ostream& operator<<(std::ostream& os,
const CachedExpression& expression);
69 void SetMinObjective(
const Expression& objective);
78 void AddConstraint(
const Formula& formula);
83 void AddRelationalConstraint(
const Formula& formula);
86 void AddConstraints(
const std::vector<Formula>& formulas);
91 nlopt::result Optimize(std::vector<double>* x,
double* opt_f);
99 nlopt::result Optimize(std::vector<double>* x,
double* opt_f,
105 const double delta_{0.0};
107 std::vector<std::unique_ptr<CachedExpression>> constraints_;
Wrapper class for nlopt.
Definition: nlopt_optimizer.h:44
Sum type of symbolic::Expression and symbolic::Formula.
Definition: api.cc:9
Represents a symbolic variable.
Definition: symbolic_variable.h:16
Cached expression class.
Definition: nlopt_optimizer.h:21
Represents a symbolic environment (mapping from a variable to a value).
Definition: symbolic_environment.h:52
Represents a n-dimensional interval vector.
Definition: box.h:17
A class implementing NNF (Negation Normal Form) conversion.
Definition: nnfizer.h:12
This is the header file that we consolidate Drake's symbolic classes and expose them inside of dreal ...
Represents a symbolic form of an expression.
Definition: symbolic_expression.h:164