Skip to content

Commit

Permalink
Disable code using CGAL
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanf committed Apr 5, 2024
1 parent e4d3a9a commit e4072a8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install gmp (Darwin)
run: brew install gmp
if: matrix.os == 'macos-latest'
- name: Build Linux
run: bazel build --define clp=true -- //...
if: matrix.os != 'windows-latest'
Expand Down
1 change: 0 additions & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,3 @@ cc_library(
urls = ["https://github.com/CGAL/cgal/releases/download/v5.6/CGAL-5.6.zip"],
sha256 = "b80e4825c4dd24c32b7326842cabf997129cd4ec6f06d73be144e979e592c74a",
)

4 changes: 2 additions & 2 deletions packingsolver/irregular/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ cc_library(
"solution.cpp",
"algorithm_formatter.cpp",
"optimize.cpp",
"irregular_to_rectangle.cpp",
#"irregular_to_rectangle.cpp",
"nlp_circle.cpp",
"nlp.cpp",
],
Expand All @@ -32,7 +32,7 @@ cc_library(
"//packingsolver/algorithms:algorithms",
"//packingsolver/rectangle:rectangle",
"@treesearchsolver//treesearchsolver:treesearchsolver",
"@cgal//:cgal",
#"@cgal//:cgal",
] + KNITRO_DEP,
copts = STDCPP17 + CLP_COPTS + CPLEX_COPTS + GUROBI_COPTS + XPRESS_COPTS + KNITRO_COPTS,
visibility = ["//visibility:public"],
Expand Down
2 changes: 2 additions & 0 deletions packingsolver/irregular/optimize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const packingsolver::irregular::Output packingsolver::irregular::optimize(

} else {

/*
IrregularToRectangleParameters i2r_parameters
= parameters.irregular_to_rectangle_parameters;
i2r_parameters.verbosity_level = 0;
Expand All @@ -50,6 +51,7 @@ const packingsolver::irregular::Output packingsolver::irregular::optimize(
irregular_to_rectangle(
instance,
i2r_parameters);
*/

/*
NlpParameters nlp_parameters;
Expand Down
4 changes: 2 additions & 2 deletions packingsolver/irregular/optimize.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "packingsolver/irregular/solution.hpp"

#include "packingsolver/irregular/irregular_to_rectangle.hpp"
//#include "packingsolver/irregular/irregular_to_rectangle.hpp"

namespace packingsolver
{
Expand All @@ -20,7 +20,7 @@ using NewSolutionCallback = std::function<void(const Output&)>;
struct OptimizeParameters: packingsolver::Parameters<Instance, Solution>
{
/** Parameters of the algorithm 'IrregularToRectangle'. */
IrregularToRectangleParameters irregular_to_rectangle_parameters;
//IrregularToRectangleParameters irregular_to_rectangle_parameters;


/** Path of the .nl output file. */
Expand Down

0 comments on commit e4072a8

Please sign in to comment.