Skip to content
Snippets Groups Projects
Commit faba1602 authored by stevet's avatar stevet
Browse files

QHULL options set in cmakelists (now PRINT_QHULL_INEQ)

parent b7099530
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ MESSAGE( STATUS "CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" OFF)
OPTION (USE_GLPK "Use sparse lp solver" OFF)
OPTION (PRINT_QHULL_INEQ "generate text file containing last inequality computed" OFF)
IF(BUILD_PYTHON_INTERFACE)
# search for python
......
......@@ -15,10 +15,6 @@
#include <limits>
#include <algorithm>
#ifndef QHULL
#define QHULL 0
#endif
static const int dimVarX = 3;
static const int numRowsForce = 6;
......@@ -488,7 +484,7 @@ ResultDataCOMTraj computeCOMTrajFixedSize(const ProblemData& pData, const Vector
std::pair<MatrixXX, VectorX> Hg = genCostFunction(pData,Ts,T,timeArray, dimVarX);
VectorX x = VectorX::Zero(dimVarX);
ResultData resQp = solve(Ab,Hg, x);
#if QHULL
#if PRINT_QHULL_INEQ
if (resQp.success_) printQHullFile(Ab,resQp.x, "bezier_wp.txt");
#endif
return genTraj(resQp, pData, T);
......@@ -518,7 +514,7 @@ ResultDataCOMTraj computeCOMTraj(const ProblemData& pData, const VectorX& Ts,
std::pair<MatrixXX, VectorX> Hg = genCostFunction(pData,Ts,T,timeArray,Ab.first.cols());
VectorX x = VectorX::Zero(Ab.first.cols());
ResultData resQp = solve(Ab,Dd,Hg, minBounds, maxBounds, x, solver);
#if QHULL
#if PRINT_QHULL_INEQ
if (resQp.success_) printQHullFile(Ab,resQp.x, "bezier_wp.txt");
#endif
return genTraj(resQp, pData, T);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment