Skip to content

Don't forget to do this in the final version #258

@ocots

Description

@ocots

function CTModels.extract_solver_infos(
nlp_solution::MadNLP.MadNLPExecutionStats,
minimize::Bool, # whether the problem is a minimization problem or not
)
# Get minimization flag and adjust objective sign accordingly
# minimize = NLPModels.get_minimize(nlp)
objective = minimize ? nlp_solution.objective : -nlp_solution.objective

Remark: actually, MadNKLP will stop to give the opposite sign in its next release I think.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions