16#include <rtl/ustring.hxx>
17#include <com/sun/star/beans/PropertyValue.hpp>
162 {
"com.sun.star.comp.Calc.CoinMPSolver",
"2" },
163 {
"com.sun.star.comp.Calc.LpsolveSolver",
"2" },
164 {
"com.sun.star.comp.Calc.SwarmSolver",
"1" }
169 {
"1",
"com.sun.star.comp.Calc.SwarmSolver" },
170 {
"2",
"com.sun.star.comp.Calc.CoinMPSolver" },
171 {
"3",
"com.sun.star.comp.Calc.SwarmSolver" }
176 typedef std::vector<std::variant<OUString, SolverParameter>>
TParamInfo;
178 = { {
"Integer", {
SP_INTEGER,
"solver_int",
"bool" } },
182 {
"Timeout", {
SP_TIMEOUT,
"solver_tim",
"int" } },
183 {
"Algorithm", {
SP_ALGORITHM,
"solver_alg",
"int" } } };
SC_DLLPUBLIC void GetEngineOptions(css::uno::Sequence< css::beans::PropertyValue > &aOptions)
SC_DLLPUBLIC std::vector< ModelConstraint > GetConstraints()
bool ReadConstraintPart(ConstraintPart ePart, tools::Long nIndex, OUString &rValue)
std::map< OUString, TParamInfo > SolverParamNames
std::vector< OUString > m_aConstraintParts
ScRangeName * m_pRangeName
void DeleteAllNamedRanges()
SolverSettings(ScTable &pTable)
css::uno::Sequence< css::beans::PropertyValue > m_aEngineOptions
std::map< OUString, OUString > SolverNamesToExcelEngines
SC_DLLPUBLIC OUString GetParameter(SolverParameter eParam)
SC_DLLPUBLIC void ResetToDefaults()
std::map< SolverParameter, OUString > m_mNamedRanges
SC_DLLPUBLIC ObjectiveType GetObjectiveType()
SC_DLLPUBLIC void SetObjectiveType(ObjectiveType eType)
SC_DLLPUBLIC void SetConstraints(std::vector< ModelConstraint > aConstraints)
OUString m_sVariableCells
void WriteConstraintPart(ConstraintPart ePart, tools::Long nIndex, OUString sValue)
bool ReadParamValue(SolverParameter eParam, OUString &rValue, bool bRemoveQuotes=false)
SC_DLLPUBLIC void SetEngineOptions(css::uno::Sequence< css::beans::PropertyValue > &aOptions)
std::vector< std::variant< OUString, SolverParameter > > TParamInfo
SC_DLLPUBLIC void SetParameter(SolverParameter eParam, OUString sValue)
SC_DLLPUBLIC void SaveSolverSettings()
void WriteParamValue(SolverParameter eParam, OUString sValue, bool bQuoted=false)
std::vector< ModelConstraint > m_aConstraints
std::map< OUString, OUString > SolverCodesToLOEngines
CAUTION! The following defines must be in the same namespace as the respective type.
ConstraintOperator nOperator