Skip to content

Check calculations for fixing variables in miqps_master() #21

Description

@WilsonGV

In the process of preparing pull request on MIQCQP functionality, I noticed that the factor 1/2 derived from evaluating the quadratic term $x^{\top}Hx$ at the given value of selected variables could have been omitted in miqps_master() when computing $c$ and the constant value of the objective. In particular, I think the following changes are required:

  1. Line 261: cc = cc + 1/2 * (H(~j,j)+H(j,~j)') * x(j);
  2. Line 268: f = f + 1/2 * x(j)' * H(j,j) * x(j);

Am I right?

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