Skip to content

Commit

Permalink
Make FillJacobianBlock public in ConstraintSet (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpowelson authored Apr 17, 2020
1 parent 5bd00bc commit ee8b3fa
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 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,16 @@ 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 ee8b3fa

Please sign in to comment.