Skip to content

Optimal function value when minimizing #1

@mateuszrycko

Description

@mateuszrycko

I was solving the following:

var constraints = new Constraint[]
{
    new Constraint(new Fraction[] { 3, 2, 1, 0, 0 }, new Fraction(1), "="),
    new Constraint(new Fraction[] { 5, 1, 1, 1, 0 }, new Fraction(3), "="),
    new Constraint(new Fraction[] { 2, 5, 1, 0, 1 }, new Fraction(4), "="),
};

var function = new Function(new Fraction[] { 1, 1, 1, 1, 1 }, new Fraction(0), false);

according to readme file, optimal value should be found in result.Results.Last().FValue
In my case it's -4.5 when it should be 4.5. Variable values for optimal solution looks correct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions