Git Product home page Git Product logo

Comments (3)

maxpla3 avatar maxpla3 commented on September 1, 2024

The 1D LP in the above post does not have a solution unless one assumes 5.68434e-14 = 0, then the LP becomes solvable with x = 0.
I have to figure out where 5.68434e-14 comes from and why it's not exactly 0.

from toppra.

maxpla3 avatar maxpla3 commented on September 1, 2024

Would this solution make sense?

if upper_bound < lower_bound AND lower_bound - upper_bound < 2 * ABS_TOLERANCE
then
  lower_bound -= ABS_TOLERANCE
  upper_bound += ABS_TOLERANCE

That way, if upper bound is smaller than lower bound due to numerical errors, we'd extend the bounds by a tiny amount and allow a solution between the new bounds?

from toppra.

maxpla3 avatar maxpla3 commented on September 1, 2024

The issue can be reproduced with following test:

    {
      // Issue #244
      v = { -65.960772491990838, 0.0 };
      A.resize(8, 2);
      A << -65.9607724919908, -0.0151605259038078,
          65.9607724919908, -0.00782362866419491,
          0.468679477393087, 5.6843418860808e-14,
          -0.468679477393087, -1000,
          0, -std::numeric_limits<double>::infinity(),
          0, -std::numeric_limits<double>::infinity(),
          -65.9607724919908, 0,
          65.9607724919908, -0.0229841545680027;

      auto sol = seidel::solve_lp1d(v, A);
      EXPECT_TRUE(sol.feasible);
    }

It fails on EXPECT_TRUE(sol.feasible).

from toppra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.