Skip to content

Commit

Permalink
Temporarily commented out the HiGHS functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanaret committed Nov 30, 2024
1 parent 0784d0f commit b37be2a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions uno/ingredients/hessian_models/ConvexifiedHessian.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// Copyright (c) 2024 Charlie Vanaret
// Licensed under the MIT license. See LICENSE file in the project directory for details.

#include <stdexcept>
#include "ConvexifiedHessian.hpp"
#include "ingredients/hessian_models/UnstableRegularization.hpp"
#include "reformulation/OptimizationProblem.hpp"
#include "solvers/DirectSymmetricIndefiniteLinearSolver.hpp"
#include "solvers/SymmetricIndefiniteLinearSolverFactory.hpp"
#include "tools/Logger.hpp"
#include "options/Options.hpp"
#include "tools/Infinity.hpp"
#include "tools/Statistics.hpp"

namespace uno {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ namespace uno {
void LPSubproblem::generate_initial_iterate(const OptimizationProblem& /*problem*/, Iterate& /*initial_iterate*/) {
}

void LPSubproblem::solve(Statistics& /*statistics*/, const OptimizationProblem& problem, Iterate& current_iterate, const Multipliers& current_multipliers,
Direction& direction, const WarmstartInformation& warmstart_information) {
void LPSubproblem::solve(Statistics& /*statistics*/, const OptimizationProblem& problem, Iterate& current_iterate,
const Multipliers& current_multipliers, Direction& direction, const WarmstartInformation& warmstart_information) {
const LagrangeNewtonSubproblem subproblem(problem, current_iterate, current_multipliers.constraints, *this->hessian_model, this->trust_region_radius);
this->solver->solve_LP(subproblem, this->initial_point, direction, warmstart_information);
InequalityConstrainedMethod::compute_dual_displacements(current_multipliers, direction.multipliers);
Expand Down
1 change: 1 addition & 0 deletions uno/ingredients/local_models/LagrangeNewtonSubproblem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace uno {
trust_region_radius(trust_region_radius) { }

void LagrangeNewtonSubproblem::evaluate_objective_gradient(SparseVector<double>& gradient) const {
gradient.clear();
this->problem.evaluate_objective_gradient(this->current_iterate, gradient);
}

Expand Down
2 changes: 2 additions & 0 deletions unotest/functional_tests/HiGHSSolverTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

using namespace uno;

/*
TEST(HiGHSSolver, LP) {
// https://ergo-code.github.io/HiGHS/stable/interfaces/cpp/library/
// Min f = x_0 + x_1 + 3
Expand Down Expand Up @@ -72,3 +73,4 @@ TEST(HiGHSSolver, LP) {
EXPECT_NEAR(direction.multipliers.upper_bounds[index], upper_bound_duals_reference[index], tolerance);
}
}
*/

0 comments on commit b37be2a

Please sign in to comment.