⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Using UnoSolver with MOA #176

@Sush1090

Description

@Sush1090

Hello,

I am trying to use MultiObjectiveAlgorithms.jl for my system. For single objective problem in my system I use UnoSolver.jl, which has given me great results.

I wanted to know if I can use it in MOA as well, as in the readme file it says:

Replace HiGHS.Optimizer with an optimizer capable of solving a single-objective instance of your optimization problem.

But when I try it on the example Bi-objective linear problem my code fails. Here is my code:

using JuMP,UnoSolver
import HiGHS
import MultiObjectiveAlgorithms as MOA

model = Model()
set_silent(model)
@variable(model, x1 >= 0)
@variable(model, 0 <= x2 <= 3)
@objective(model, Min, [3x1 + x2, -x1 - 2x2])
@constraint(model, 3x1 - x2 <= 6) 
set_optimizer(model, () -> UnoSolver.Optimizer(preset="filtersqp")) # Only changed the Optimizer from HiGHS
set_attribute(model, MOA.Algorithm(), MOA.Lexicographic())
optimize!(model)
solution_summary(model)

So is there a problem in my usage or is the UnoSolver not compatible with MOA as of now?

Thank you

Metadata

Metadata

Assignees

No one assigned

    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