This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using BenchmarkTools | |
using CUTEst | |
using MadNLP | |
name = "OPTMASS" | |
nlp = CUTEst.CUTEstModel(name) | |
solver = MadNLP.MadNLPSolver(nlp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract type AbstractKKTSystem end | |
"Assemble KKT matrix." | |
function compress! end | |
"Factorize KKT matrix with given linear solver." | |
function factorize! end | |
"Solve KKT system `Wx = b` with given linear solver." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract type AbstractLinearSolver end | |
""" | |
introduce(solver::AbstractLinearSolver) | |
Print the name of the linear system. | |
""" | |
function introduce end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MathOptInterface | |
using MathOptFormat | |
using Dualization | |
const MOI = MathOptInterface | |
const MOIU = MathOptInterface.Utilities | |
const MOF = MathOptFormat | |
# Mock model | |
MOIU.@model(TestModel, |