Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to solver : trial for simplification #2452

Draft
wants to merge 16 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
54d88cb
Remove Sirius direct call : all developments in one
guilpier-code Oct 2, 2024
4fb3544
Remove Sirius direct call : more tests on CI
guilpier-code Oct 2, 2024
1bb4a6c
Remove Sirius direct call : clang format
guilpier-code Oct 2, 2024
8b5f1cc
Remove Sirius direct call : cucumber is adapted to current changes (C…
guilpier-code Oct 4, 2024
27fc92e
Trial to simplify solver call : solver ptr a bit more clear
guilpier-code Oct 4, 2024
a4f1d80
Trial to simplify solver call : crash correction
guilpier-code Oct 4, 2024
c8d5896
Trial to simplify solver call : omission in previous commit corrected
guilpier-code Oct 4, 2024
343f2d8
Trial to simplify solver call : correct a crash on infeasible problems
guilpier-code Oct 7, 2024
91de738
Trial to simplify solver call : try to improve solver liberation
guilpier-code Oct 7, 2024
ef66d4c
Trial to simplify solver call : towards more improvement on solver li…
guilpier-code Oct 7, 2024
59348c7
Trial to simplify solver call : improve solvers passing among all run…
guilpier-code Oct 7, 2024
e36b6dd
Trial to simplify solver call : avoid code duplication in resetting s…
guilpier-code Oct 7, 2024
c2ab575
Trial to simplify solver call : no need to import basic status into c…
guilpier-code Oct 7, 2024
1b4ebd0
Trial to simplify solver call : for solver, case SPX_ERREUR_INTERNE i…
guilpier-code Oct 7, 2024
15851b6
Trial to simplify solver call : trial to remove status transfers betw…
guilpier-code Oct 7, 2024
668ce02
[skip ci] Revert "Trial to simplify solver call : trial to remove sta…
guilpier-code Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[skip ci] Revert "Trial to simplify solver call : trial to remove sta…
…tus transfers between MPSolver and PROBLEME_SIMPLEXE_NOMME, possibly useless"
guilpier-code committed Oct 8, 2024
commit 668ce025d6304a3a205c348fa1de7e56f7998cbe
11 changes: 11 additions & 0 deletions src/solver/utils/ortools_utils.cpp
Original file line number Diff line number Diff line change
@@ -349,10 +349,21 @@ MPSolver* ORTOOLS_Simplexe(Antares::Optimization::PROBLEME_SIMPLEXE_NOMME* Probl
solver->EnableOutput();
}
TuneSolverSpecificOptions(solver, options.ortoolsSolver, options.solverParameters);
const bool warmStart = solverSupportsWarmStart(solver->ProblemType());
// Provide an initial simplex basis, if any
if (warmStart && Probleme->basisExists())
{
Probleme->basisStatus.setStartingBasis(solver);
}

if (solveAndManageStatus(solver, Probleme->ExistenceDUneSolution, params))
{
extract_from_MPSolver(solver, Probleme);
// Save the final simplex basis for next resolutions
if (warmStart && keepBasis)
{
Probleme->basisStatus.extractBasis(solver);
}
}

return solver;