Commit 3155b6e5 authored by David Bommes's avatar David Bommes

fixed uninitialized x for lazy constraints

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@298 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 1a019e55
......@@ -151,7 +151,15 @@ public:
/** default constructor */
NProblemIPOPT(NProblemInterface* _problem, const std::vector<NConstraintInterface*>& _constraints, const bool _hessian_approximation = false)
: problem_(_problem), store_solution_(false), hessian_approximation_(_hessian_approximation) { split_constraints(_constraints); analyze_special_properties(_problem, _constraints);}
: problem_(_problem), store_solution_(false), hessian_approximation_(_hessian_approximation)
{
// initialize solution
x_.resize(_problem->n_unknowns());
_problem->initial_x(P(x_));
split_constraints(_constraints);
analyze_special_properties(_problem, _constraints);
}
/** default destructor */
virtual ~NProblemIPOPT() {};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment