Skip to content

Commit

Permalink
Make FillJacobianBlock public in ConstraintSet
Browse files Browse the repository at this point in the history
  • Loading branch information
mpowelson committed Apr 17, 2020
1 parent 5bd00bc commit de5455e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions ifopt_core/include/ifopt/constraint_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ class ConstraintSet : public Component {
*/
Jacobian GetJacobian() const final;

protected:
/**
* @brief Read access to the value of the optimization variables.
*
* This must be used to formulate the constraint violation and Jacobian.
*/
const VariablesPtr GetVariables() const { return variables_; };

private:
/**
* @brief Set individual Jacobians corresponding to each decision variable set.
* @param var_set Set of variables the current Jacobian block belongs to.
Expand All @@ -107,6 +98,17 @@ class ConstraintSet : public Component {
* simply do nothing.
*/
virtual void FillJacobianBlock(std::string var_set, Jacobian& jac_block) const = 0;

protected:
/**
* @brief Read access to the value of the optimization variables.
*
* This must be used to formulate the constraint violation and Jacobian.
*/
const VariablesPtr GetVariables() const { return variables_; };

private:

VariablesPtr variables_;

/**
Expand Down

0 comments on commit de5455e

Please sign in to comment.