Skip to content

Commit ee8b3fa

Browse files
authored
Make FillJacobianBlock public in ConstraintSet (#49)
1 parent 5bd00bc commit ee8b3fa

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

ifopt_core/include/ifopt/constraint_set.h

+10-9
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ class ConstraintSet : public Component {
8282
*/
8383
Jacobian GetJacobian() const final;
8484

85-
protected:
86-
/**
87-
* @brief Read access to the value of the optimization variables.
88-
*
89-
* This must be used to formulate the constraint violation and Jacobian.
90-
*/
91-
const VariablesPtr GetVariables() const { return variables_; };
92-
93-
private:
9485
/**
9586
* @brief Set individual Jacobians corresponding to each decision variable set.
9687
* @param var_set Set of variables the current Jacobian block belongs to.
@@ -107,6 +98,16 @@ class ConstraintSet : public Component {
10798
* simply do nothing.
10899
*/
109100
virtual void FillJacobianBlock(std::string var_set, Jacobian& jac_block) const = 0;
101+
102+
protected:
103+
/**
104+
* @brief Read access to the value of the optimization variables.
105+
*
106+
* This must be used to formulate the constraint violation and Jacobian.
107+
*/
108+
const VariablesPtr GetVariables() const { return variables_; };
109+
110+
private:
110111
VariablesPtr variables_;
111112

112113
/**

0 commit comments

Comments
 (0)