All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.convexOptimization.quadraticProgram.SimpleActiveSetQPSolver Maven / Gradle / Ivy

There is a newer version: 0.17.22
Show newest version
package us.ihmc.convexOptimization.quadraticProgram;

import org.ejml.data.DMatrixRMaj;

public class SimpleActiveSetQPSolver extends AbstractActiveSetQPSolver
{
   // Uses the algorithm and naming convention found in MIT Paper
   // "An efficiently solvable quadratic program for stabilizing dynamic locomotion"
   // by Scott Kuindersma, Frank Permenter, and Russ Tedrakenv.

   SimpleActiveSetQPStandaloneSolver solver = new SimpleActiveSetQPStandaloneSolver();
   DMatrixRMaj solutionVector = new DMatrixRMaj(0);

   @Override
   public double[] solve()
   {
      int iterations = solver.solve(quadraticCostGMatrix,
                                    quadraticCostFVector,
                                    linearEqualityConstraintA,
                                    linearEqualityConstraintB,
                                    linearInequalityConstraintA,
                                    linearInequalityConstraintB,
                                    linearInequalityActiveSet,
                                    solutionVector);
      return solutionVector.getData();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy