Revision f8c1c6834e3c7da57d0cae114735f1cf643b0498 authored by Nico Schertler on 09 July 2018, 14:15:39 UTC, committed by Nico Schertler on 09 July 2018, 14:15:39 UTC
1 parent 722a9f4
ArclengthStrategyGurobi.h
#pragma once
#include "ParametrizationData.h"
#include "ParametrizationInterfaces.h"
#include <chrono>
//Represents a strategy that calculates integer arc lengths using a global constrained quadratic energy and Gurobi.
class ArclengthStrategyGurobi : public IArclengthStrategy
{
public:
//Instantiates the strategy.
//discreteOptimizationTimeLimit - the time limit after which optimization is stopped; there may or may not be a result after that
ArclengthStrategyGurobi(const std::chrono::steady_clock::duration& discreteOptimizationTimeLimit);
void CalculateParametricLengths(ParametrizationData& optData);
private:
//The time limit after which optimization is stopped.
const std::chrono::steady_clock::duration& discreteOptimizationTimeLimit;
};
Computing file changes ...