Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CoMISo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CoMISo
CoMISo
Commits
295188fe
Commit
295188fe
authored
Aug 16, 2017
by
Max Lyon
Browse files
Options
Browse Files
Download
Plain Diff
Merge from ReForm
parents
49e4334c
d4ad1599
Pipeline
#5572
failed with stages
in 2 minutes and 29 seconds
Changes
52
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
64 additions
and
412 deletions
+64
-412
EigenSolver/ArpackSolver.hh
EigenSolver/ArpackSolver.hh
+0
-11
EigenSolver/EigenArpackMatrixT.hh
EigenSolver/EigenArpackMatrixT.hh
+0
-3
NSolver/AcceleratedQuadraticProxy.hh
NSolver/AcceleratedQuadraticProxy.hh
+0
-3
NSolver/BoundConstraint.cc
NSolver/BoundConstraint.cc
+0
-8
NSolver/BoundConstraint.hh
NSolver/BoundConstraint.hh
+0
-4
NSolver/CBCSolver.hh
NSolver/CBCSolver.hh
+0
-6
NSolver/COMISOSolver.hh
NSolver/COMISOSolver.hh
+0
-6
NSolver/CPLEXSolver.cc
NSolver/CPLEXSolver.cc
+0
-8
NSolver/CPLEXSolver.hh
NSolver/CPLEXSolver.hh
+0
-6
NSolver/CombinedProblem.cc
NSolver/CombinedProblem.cc
+4
-6
NSolver/CombinedProblem.hh
NSolver/CombinedProblem.hh
+0
-3
NSolver/ConeConstraint.cc
NSolver/ConeConstraint.cc
+0
-3
NSolver/ConeConstraint.hh
NSolver/ConeConstraint.hh
+0
-3
NSolver/ConstraintTools.cc
NSolver/ConstraintTools.cc
+0
-11
NSolver/ConstraintTools.hh
NSolver/ConstraintTools.hh
+0
-6
NSolver/DOCloudJob.cc
NSolver/DOCloudJob.cc
+0
-2
NSolver/FiniteElementProblem.cc
NSolver/FiniteElementProblem.cc
+0
-5
NSolver/FiniteElementProblem.hh
NSolver/FiniteElementProblem.hh
+0
-3
NSolver/GUROBISolver.cc
NSolver/GUROBISolver.cc
+0
-7
NSolver/GUROBISolver.hh
NSolver/GUROBISolver.hh
+0
-7
NSolver/IPOPTSolver.hh
NSolver/IPOPTSolver.hh
+0
-3
NSolver/IPOPTSolverLean.cc
NSolver/IPOPTSolverLean.cc
+6
-3
NSolver/LeastSquaresProblem.hh
NSolver/LeastSquaresProblem.hh
+0
-4
NSolver/LinearConstraint.cc
NSolver/LinearConstraint.cc
+0
-3
NSolver/LinearConstraint.hh
NSolver/LinearConstraint.hh
+0
-3
NSolver/LinearConstraintHandlerElimination.hh
NSolver/LinearConstraintHandlerElimination.hh
+0
-4
NSolver/LinearConstraintHandlerPenalty.cc
NSolver/LinearConstraintHandlerPenalty.cc
+0
-7
NSolver/LinearConstraintHandlerPenalty.hh
NSolver/LinearConstraintHandlerPenalty.hh
+0
-3
NSolver/LinearProblem.cc
NSolver/LinearProblem.cc
+0
-4
NSolver/LinearProblem.hh
NSolver/LinearProblem.hh
+0
-3
NSolver/NPDerivativeChecker.cc
NSolver/NPDerivativeChecker.cc
+0
-6
NSolver/NPDerivativeChecker.hh
NSolver/NPDerivativeChecker.hh
+0
-6
NSolver/NPLinearConstraints.cc
NSolver/NPLinearConstraints.cc
+0
-7
NSolver/NPLinearConstraints.hh
NSolver/NPLinearConstraints.hh
+0
-6
NSolver/NPTiming.cc
NSolver/NPTiming.cc
+1
-4
NSolver/NPTiming.hh
NSolver/NPTiming.hh
+0
-3
NSolver/NProblemGmmInterface.hh
NSolver/NProblemGmmInterface.hh
+5
-4
NSolver/NProblemIPOPT.hh
NSolver/NProblemIPOPT.hh
+0
-6
NSolver/NewtonSolver.cc
NSolver/NewtonSolver.cc
+8
-5
NSolver/NewtonSolver.hh
NSolver/NewtonSolver.hh
+0
-3
NSolver/SuperSparseMatrixT.hh
NSolver/SuperSparseMatrixT.hh
+0
-3
NSolver/TAOSolver.hh
NSolver/TAOSolver.hh
+0
-8
NSolver/TestInterface.hh
NSolver/TestInterface.hh
+0
-7
QtWidgets/MISolverDialogUI.hh
QtWidgets/MISolverDialogUI.hh
+0
-113
Solver/ConstrainedSolver.cc
Solver/ConstrainedSolver.cc
+3
-0
Solver/ConstrainedSolver.hh
Solver/ConstrainedSolver.hh
+0
-3
Solver/EigenLDLTSolver.cc
Solver/EigenLDLTSolver.cc
+1
-15
Solver/EigenLDLTSolver.hh
Solver/EigenLDLTSolver.hh
+32
-37
Solver/IterativeSolverT.hh
Solver/IterativeSolverT.hh
+0
-8
Solver/MISolver.cc
Solver/MISolver.cc
+4
-8
Solver/MISolver.hh
Solver/MISolver.hh
+0
-4
Utils/MutablePriorityQueueT.hh
Utils/MutablePriorityQueueT.hh
+0
-8
No files found.
EigenSolver/ArpackSolver.hh
View file @
295188fe
...
@@ -42,17 +42,9 @@ namespace COMISO {
...
@@ -42,17 +42,9 @@ namespace COMISO {
class
COMISODLLEXPORT
ArpackSolver
class
COMISODLLEXPORT
ArpackSolver
{
{
public:
public:
// sparse matrix type
// sparse matrix type
typedef
EigenArpackMatrixT
<
double
,
Eigen
::
SparseMatrix
<
double
,
Eigen
::
ColMajor
>
>
Matrix
;
typedef
EigenArpackMatrixT
<
double
,
Eigen
::
SparseMatrix
<
double
,
Eigen
::
ColMajor
>
>
Matrix
;
/// Constructor
ArpackSolver
()
{}
/// Destructor
~
ArpackSolver
()
{}
// solve eigenproblem
// solve eigenproblem
// number of desired eigenvalues -> _n_eigenvalues
// number of desired eigenvalues -> _n_eigenvalues
// which eigenvalues -> one of {LA (largest algebraic), SA (smalles algebraic), LM (largest magnitude), SM(smallest magnitued), BE(both ends)}
// which eigenvalues -> one of {LA (largest algebraic), SA (smalles algebraic), LM (largest magnitude), SM(smallest magnitued), BE(both ends)}
...
@@ -77,9 +69,6 @@ public:
...
@@ -77,9 +69,6 @@ public:
// check resulting eigenvalues/eigenvectors
// check resulting eigenvalues/eigenvectors
template
<
class
MatrixT
,
class
MatrixT2
>
template
<
class
MatrixT
,
class
MatrixT2
>
void
check_result
(
const
MatrixT
&
_A
,
std
::
vector
<
double
>&
_eigenvalues
,
MatrixT2
&
_eigenvectors
);
void
check_result
(
const
MatrixT
&
_A
,
std
::
vector
<
double
>&
_eigenvalues
,
MatrixT2
&
_eigenvectors
);
private:
};
};
...
...
EigenSolver/EigenArpackMatrixT.hh
View file @
295188fe
...
@@ -74,9 +74,6 @@ public:
...
@@ -74,9 +74,6 @@ public:
}
}
}
}
/// Destructor
~
EigenArpackMatrixT
()
{}
// get reference on matrix
// get reference on matrix
Matrix
&
matrix
()
{
return
mat_
;
}
Matrix
&
matrix
()
{
return
mat_
;
}
...
...
NSolver/AcceleratedQuadraticProxy.hh
View file @
295188fe
...
@@ -45,9 +45,6 @@ public:
...
@@ -45,9 +45,6 @@ public:
AcceleratedQuadraticProxy
(
const
double
_eps
=
1e-6
,
const
int
_max_iters
=
1000
,
const
double
_accelerate
=
100.0
,
const
double
_alpha_ls
=
0.2
,
const
double
_beta_ls
=
0.6
)
AcceleratedQuadraticProxy
(
const
double
_eps
=
1e-6
,
const
int
_max_iters
=
1000
,
const
double
_accelerate
=
100.0
,
const
double
_alpha_ls
=
0.2
,
const
double
_beta_ls
=
0.6
)
:
eps_
(
_eps
),
max_iters_
(
_max_iters
),
accelerate_
(
_accelerate
),
alpha_ls_
(
_alpha_ls
),
beta_ls_
(
_beta_ls
)
{}
:
eps_
(
_eps
),
max_iters_
(
_max_iters
),
accelerate_
(
_accelerate
),
alpha_ls_
(
_alpha_ls
),
beta_ls_
(
_beta_ls
)
{}
/// Destructor
~
AcceleratedQuadraticProxy
()
{}
// solve without linear constraints
// solve without linear constraints
int
solve
(
NProblemInterface
*
_quadratic_problem
,
NProblemInterface
*
_nonlinear_problem
,
bool
_update_factorization
=
true
)
int
solve
(
NProblemInterface
*
_quadratic_problem
,
NProblemInterface
*
_nonlinear_problem
,
bool
_update_factorization
=
true
)
{
{
...
...
NSolver/BoundConstraint.cc
View file @
295188fe
...
@@ -30,14 +30,6 @@ BoundConstraint(const unsigned int _var_idx, // index of variable for bound c
...
@@ -30,14 +30,6 @@ BoundConstraint(const unsigned int _var_idx, // index of variable for bound c
}
}
//-----------------------------------------------------------------------------
BoundConstraint
::
~
BoundConstraint
()
{
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
...
NSolver/BoundConstraint.hh
View file @
295188fe
...
@@ -47,10 +47,6 @@ public:
...
@@ -47,10 +47,6 @@ public:
const
unsigned
int
_n
=
0
,
// number of unknowns in problem
const
unsigned
int
_n
=
0
,
// number of unknowns in problem
const
ConstraintType
_type
=
NC_LESS_EQUAL
);
// type of bound upper, lower or both (equal)
const
ConstraintType
_type
=
NC_LESS_EQUAL
);
// type of bound upper, lower or both (equal)
/// Destructor
virtual
~
BoundConstraint
();
virtual
int
n_unknowns
(
);
virtual
int
n_unknowns
(
);
virtual
double
eval_constraint
(
const
double
*
_x
);
virtual
double
eval_constraint
(
const
double
*
_x
);
virtual
void
eval_gradient
(
const
double
*
_x
,
SVectorNC
&
_g
);
virtual
void
eval_gradient
(
const
double
*
_x
,
SVectorNC
&
_g
);
...
...
NSolver/CBCSolver.hh
View file @
295188fe
...
@@ -39,12 +39,6 @@ namespace COMISO {
...
@@ -39,12 +39,6 @@ namespace COMISO {
class
COMISODLLEXPORT
CBCSolver
class
COMISODLLEXPORT
CBCSolver
{
{
public:
public:
/// Default constructor
CBCSolver
()
{}
/// Destructor
~
CBCSolver
()
{}
// ********** SOLVE **************** //
// ********** SOLVE **************** //
//! \throws Outcome
//! \throws Outcome
bool
solve
(
bool
solve
(
...
...
NSolver/COMISOSolver.hh
View file @
295188fe
...
@@ -44,12 +44,6 @@ public:
...
@@ -44,12 +44,6 @@ public:
typedef
std
::
pair
<
unsigned
int
,
VariableType
>
PairUiV
;
typedef
std
::
pair
<
unsigned
int
,
VariableType
>
PairUiV
;
/// Default constructor
COMISOSolver
()
{}
/// Destructor
~
COMISOSolver
()
{}
// ********** SOLVE **************** //
// ********** SOLVE **************** //
void
solve
(
NProblemInterface
*
_problem
,
// problem instance
void
solve
(
NProblemInterface
*
_problem
,
// problem instance
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
// linear constraints
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
// linear constraints
...
...
NSolver/CPLEXSolver.cc
View file @
295188fe
...
@@ -1300,14 +1300,6 @@ add_constraint_to_model( NConstraintInterface* _constraint, std::vector<IloNumVa
...
@@ -1300,14 +1300,6 @@ add_constraint_to_model( NConstraintInterface* _constraint, std::vector<IloNumVa
}
}
CPLEXSolver
::
CPLEXSolver
()
{
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
...
...
NSolver/CPLEXSolver.hh
View file @
295188fe
...
@@ -45,12 +45,6 @@ class COMISODLLEXPORT CPLEXSolver
...
@@ -45,12 +45,6 @@ class COMISODLLEXPORT CPLEXSolver
{
{
public:
public:
/// Default constructor
CPLEXSolver
();
/// Destructor
~
CPLEXSolver
()
{
/*env_.end();*/
}
// ********** SOLVE **************** //
// ********** SOLVE **************** //
// this function has to be inline due to static linking issues
// this function has to be inline due to static linking issues
bool
solve
(
NProblemInterface
*
_problem
,
// problem instance
bool
solve
(
NProblemInterface
*
_problem
,
// problem instance
...
...
NSolver/CombinedProblem.cc
View file @
295188fe
...
@@ -5,22 +5,20 @@
...
@@ -5,22 +5,20 @@
//== INCLUDES =================================================================
//== INCLUDES =================================================================
#include "CombinedProblem.hh"
#include "CombinedProblem.hh"
#include <Base/Debug/DebOut.hh>
namespace
COMISO
{
namespace
COMISO
{
CombinedProblem
::
CombinedProblem
(
NProblemInterface
*
_p1
,
NProblemInterface
*
_p2
,
const
double
_c1
,
const
double
_c2
)
CombinedProblem
::
CombinedProblem
(
NProblemInterface
*
_p1
,
NProblemInterface
*
_p2
,
const
double
_c1
,
const
double
_c2
)
:
p1_
(
_p1
)
,
p2_
(
_p2
),
c1_
(
_c1
),
c2_
(
_c2
)
:
p1_
(
_p1
)
,
p2_
(
_p2
),
c1_
(
_c1
),
c2_
(
_c2
)
{
{
if
(
p1_
->
n_unknowns
()
!=
p2_
->
n_unknowns
())
DEB_enter_func
;
std
::
cerr
<<
"Warning: CombinedProblem received two problems with different #unknowns!!!"
<<
std
::
endl
;
DEB_warning_if
(
p1_
->
n_unknowns
()
!=
p2_
->
n_unknowns
(),
1
,
"CombinedProblem received two problems with different unknowns #"
);
g_temp_
.
resize
(
p1_
->
n_unknowns
());
g_temp_
.
resize
(
p1_
->
n_unknowns
());
}
}
CombinedProblem
::~
CombinedProblem
()
{
}
int
CombinedProblem
::
n_unknowns
()
int
CombinedProblem
::
n_unknowns
()
{
{
return
p1_
->
n_unknowns
();
return
p1_
->
n_unknowns
();
...
...
NSolver/CombinedProblem.hh
View file @
295188fe
...
@@ -48,9 +48,6 @@ public:
...
@@ -48,9 +48,6 @@ public:
/// Default constructor
/// Default constructor
CombinedProblem
(
NProblemInterface
*
_p1
,
NProblemInterface
*
_p2
,
const
double
_c1
=
1.0
,
const
double
_c2
=
1.0
);
CombinedProblem
(
NProblemInterface
*
_p1
,
NProblemInterface
*
_p2
,
const
double
_c1
=
1.0
,
const
double
_c2
=
1.0
);
/// Destructor
virtual
~
CombinedProblem
();
// problem definition
// problem definition
virtual
int
n_unknowns
();
virtual
int
n_unknowns
();
...
...
NSolver/ConeConstraint.cc
View file @
295188fe
...
@@ -39,9 +39,6 @@ ConeConstraint::ConeConstraint(const double _c, const int _i, const SMatrixNC& _
...
@@ -39,9 +39,6 @@ ConeConstraint::ConeConstraint(const double _c, const int _i, const SMatrixNC& _
{
{
}
}
/// Destructor
ConeConstraint
::~
ConeConstraint
()
{}
int
ConeConstraint
::
n_unknowns
()
int
ConeConstraint
::
n_unknowns
()
{
{
return
Q_
.
cols
();
return
Q_
.
cols
();
...
...
NSolver/ConeConstraint.hh
View file @
295188fe
...
@@ -39,9 +39,6 @@ public:
...
@@ -39,9 +39,6 @@ public:
// cone constraint of the form -> 0.5*(c_ * x(i_)^2 - x^T Q_ x) >= 0
// cone constraint of the form -> 0.5*(c_ * x(i_)^2 - x^T Q_ x) >= 0
ConeConstraint
(
const
double
_c
,
const
int
_i
,
const
SMatrixNC
&
_Q
);
ConeConstraint
(
const
double
_c
,
const
int
_i
,
const
SMatrixNC
&
_Q
);
/// Destructor
virtual
~
ConeConstraint
();
virtual
int
n_unknowns
();
virtual
int
n_unknowns
();
// resize coefficient vector = #unknowns
// resize coefficient vector = #unknowns
...
...
NSolver/ConstraintTools.cc
View file @
295188fe
...
@@ -13,17 +13,6 @@
...
@@ -13,17 +13,6 @@
namespace
COMISO
{
namespace
COMISO
{
ConstraintTools
::
ConstraintTools
()
{
}
//-----------------------------------------------------------------------------
ConstraintTools
::~
ConstraintTools
()
{
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void
void
...
...
NSolver/ConstraintTools.hh
View file @
295188fe
...
@@ -47,12 +47,6 @@ public:
...
@@ -47,12 +47,6 @@ public:
typedef
gmm
::
row_matrix
<
SVectorGMM
>
RMatrixGMM
;
typedef
gmm
::
row_matrix
<
SVectorGMM
>
RMatrixGMM
;
typedef
gmm
::
col_matrix
<
SVectorGMM
>
CMatrixGMM
;
typedef
gmm
::
col_matrix
<
SVectorGMM
>
CMatrixGMM
;
/// Default constructor
ConstraintTools
();
/// Destructor
~
ConstraintTools
();
// remove all linear dependent linear equality constraints. the remaining constraints are a subset of the original ones
// remove all linear dependent linear equality constraints. the remaining constraints are a subset of the original ones
// nonlinear or equality constraints are preserved.
// nonlinear or equality constraints are preserved.
static
void
remove_dependent_linear_constraints
(
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
const
double
_eps
=
1e-8
);
static
void
remove_dependent_linear_constraints
(
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
const
double
_eps
=
1e-8
);
...
...
NSolver/DOCloudJob.cc
View file @
295188fe
...
@@ -242,8 +242,6 @@ private:
...
@@ -242,8 +242,6 @@ private:
Job
::~
Job
()
Job
::~
Job
()
{
{
DEB_enter_func
;
delete
stts_
;
delete
stts_
;
if
(
url_
.
empty
())
// not setup
if
(
url_
.
empty
())
// not setup
...
...
NSolver/FiniteElementProblem.cc
View file @
295188fe
...
@@ -13,11 +13,6 @@ FiniteElementProblem::FiniteElementProblem(const unsigned int _n)
...
@@ -13,11 +13,6 @@ FiniteElementProblem::FiniteElementProblem(const unsigned int _n)
{
{
}
}
/// Destructor
FiniteElementProblem
::~
FiniteElementProblem
()
{
}
void
FiniteElementProblem
::
add_set
(
FiniteElementSetBase
*
_fe_set
)
void
FiniteElementProblem
::
add_set
(
FiniteElementSetBase
*
_fe_set
)
{
{
fe_sets_
.
push_back
(
_fe_set
);
fe_sets_
.
push_back
(
_fe_set
);
...
...
NSolver/FiniteElementProblem.hh
View file @
295188fe
...
@@ -237,9 +237,6 @@ public:
...
@@ -237,9 +237,6 @@ public:
/// Default constructor
/// Default constructor
FiniteElementProblem
(
const
unsigned
int
_n
);
FiniteElementProblem
(
const
unsigned
int
_n
);
/// Destructor
virtual
~
FiniteElementProblem
();
void
add_set
(
FiniteElementSetBase
*
_fe_set
);
void
add_set
(
FiniteElementSetBase
*
_fe_set
);
void
clear_sets
();
void
clear_sets
();
...
...
NSolver/GUROBISolver.cc
View file @
295188fe
...
@@ -59,13 +59,6 @@ void add_constraint_to_model(COMISO::NConstraintInterface* _constraint,
...
@@ -59,13 +59,6 @@ void add_constraint_to_model(COMISO::NConstraintInterface* _constraint,
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
GUROBISolver
::
GUROBISolver
()
{
}
//-----------------------------------------------------------------------------
static
void
process_gurobi_exception
(
const
GRBException
&
_exc
)
static
void
process_gurobi_exception
(
const
GRBException
&
_exc
)
{
{
DEB_enter_func
;
DEB_enter_func
;
...
...
NSolver/GUROBISolver.hh
View file @
295188fe
...
@@ -42,13 +42,6 @@ namespace COMISO {
...
@@ -42,13 +42,6 @@ namespace COMISO {
class
COMISODLLEXPORT
GUROBISolver
class
COMISODLLEXPORT
GUROBISolver
{
{
public:
public:
/// Default constructor
GUROBISolver
();
/// Destructor
~
GUROBISolver
()
{}
// ********** SOLVE **************** //
// ********** SOLVE **************** //
bool
solve
(
NProblemInterface
*
_problem
,
// problem instance
bool
solve
(
NProblemInterface
*
_problem
,
// problem instance
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
// linear constraints
std
::
vector
<
NConstraintInterface
*>&
_constraints
,
// linear constraints
...
...
NSolver/IPOPTSolver.hh
View file @
295188fe
...
@@ -52,9 +52,6 @@ public:
...
@@ -52,9 +52,6 @@ public:
/// Default constructor -> set up IpOptApplication
/// Default constructor -> set up IpOptApplication
IPOPTSolver
();
IPOPTSolver
();
/// Destructor
~
IPOPTSolver
()
{}
// ********** SOLVE **************** //
// ********** SOLVE **************** //
// solve -> returns ipopt status code
// solve -> returns ipopt status code
//------------------------------------------------------
//------------------------------------------------------
...
...
NSolver/IPOPTSolverLean.cc
View file @
295188fe
...
@@ -171,12 +171,16 @@ static void throw_ipopt_solve_failure(Ipopt::ApplicationReturnStatus const statu
...
@@ -171,12 +171,16 @@ static void throw_ipopt_solve_failure(Ipopt::ApplicationReturnStatus const statu
// Internal_Error=-199
// Internal_Error=-199
// };
// };
//------------------------------------------------------
//------------------------------------------------------
switch
(
status
)
{
switch
(
status
)
{
case
Ipopt
::
Maximum_Iterations_Exceeded
:
case
Ipopt
::
Maximum_Iterations_Exceeded
:
COMISO_THROW
(
IPOPT_MAXIMUM_ITERATIONS_EXCEEDED
);
COMISO_THROW
(
IPOPT_MAXIMUM_ITERATIONS_EXCEEDED
);
case
Ipopt
::
NonIpopt_Exception_Thrown
:
// this could be due to a thrown PROGRESS_ABORTED exception, ...
PROGRESS_RESUME_ABORT
;
// ... so check if we need to resume it
default:
default:
COMISO_THROW
(
IPOPT_OPTIMIZATION_FAILED
);
COMISO_THROW
(
IPOPT_OPTIMIZATION_FAILED
);
}
// endswicth
}
}
}
static
void
check_ipopt_status
(
Ipopt
::
ApplicationReturnStatus
const
_stat
)
static
void
check_ipopt_status
(
Ipopt
::
ApplicationReturnStatus
const
_stat
)
...
@@ -185,7 +189,6 @@ static void check_ipopt_status(Ipopt::ApplicationReturnStatus const _stat)
...
@@ -185,7 +189,6 @@ static void check_ipopt_status(Ipopt::ApplicationReturnStatus const _stat)
throw_ipopt_solve_failure
(
_stat
);
throw_ipopt_solve_failure
(
_stat
);
}
}
void
IPOPTSolverLean
::
solve
(
NProblemInterface
*
_problem
,
void
IPOPTSolverLean
::
solve
(
NProblemInterface
*
_problem
,
const
std
::
vector
<
NConstraintInterface
*>&
_constraints
)
const
std
::
vector
<
NConstraintInterface
*>&
_constraints
)
{
{
...
...
NSolver/LeastSquaresProblem.hh
View file @
295188fe
...
@@ -41,10 +41,6 @@ public:
...
@@ -41,10 +41,6 @@ public:
/// Default constructor
/// Default constructor
LeastSquaresProblem
(
const
int
_n_unknowns
=
0
)
:
n_
(
_n_unknowns
),
x_
(
_n_unknowns
,
0.0
)
{}
LeastSquaresProblem
(
const
int
_n_unknowns
=
0
)
:
n_
(
_n_unknowns
),
x_
(
_n_unknowns
,
0.0
)
{}
/// Destructor
~
LeastSquaresProblem
()
{}
void
add_term
(
NConstraintInterface
*
_term
);
void
add_term
(
NConstraintInterface
*
_term
);
void
clear_terms
()
{
terms_
.
clear
();}
void
clear_terms
()
{
terms_
.
clear
();}
...
...
NSolver/LinearConstraint.cc
View file @
295188fe
...
@@ -35,9 +35,6 @@ LinearConstraint::LinearConstraint(const SVectorNC& _coeffs, const double _b, co
...
@@ -35,9 +35,6 @@ LinearConstraint::LinearConstraint(const SVectorNC& _coeffs, const double _b, co
b_
=
_b
;
b_
=
_b
;
}
}
/// Destructor
LinearConstraint
::~
LinearConstraint
()
{}
int
LinearConstraint
::
n_unknowns
()
int
LinearConstraint
::
n_unknowns
()
{
{
return
coeffs_
.
innerSize
();
return
coeffs_
.
innerSize
();
...
...
NSolver/LinearConstraint.hh
View file @
295188fe
...
@@ -48,9 +48,6 @@ public:
...
@@ -48,9 +48,6 @@ public:
// linear equation of the form -> coeffs_^T *x + b_=_type= 0
// linear equation of the form -> coeffs_^T *x + b_=_type= 0
LinearConstraint
(
const
SVectorNC
&
_coeffs
,
const
double
_b
,
const
ConstraintType
_type
=
NC_EQUAL
);
LinearConstraint
(
const
SVectorNC
&
_coeffs
,
const
double
_b
,
const
ConstraintType
_type
=
NC_EQUAL
);
/// Destructor
virtual
~
LinearConstraint
();
virtual
int
n_unknowns
();
virtual
int
n_unknowns
();
// resize coefficient vector = #unknowns
// resize coefficient vector = #unknowns
...
...
NSolver/LinearConstraintHandlerElimination.hh
View file @
295188fe
...
@@ -52,10 +52,6 @@ public:
...
@@ -52,10 +52,6 @@ public:
LinearConstraintHandlerElimination
(
const
MatrixT
&
_C
,
const
VectorT
&
_c
)
LinearConstraintHandlerElimination
(
const
MatrixT
&
_C
,
const
VectorT
&
_c
)
{
initialize
(
_C
,
_c
);
}
{
initialize
(
_C
,
_c
);
}
/// Destructor
~
LinearConstraintHandlerElimination
()
{}
// number of variables
// number of variables
int
n
()
{
return
n_
;}
int
n
()
{
return
n_
;}
// number of reduced variables (after elimination)
// number of reduced variables (after elimination)
...
...
NSolver/LinearConstraintHandlerPenalty.cc
View file @
295188fe
...
@@ -20,13 +20,6 @@ namespace COMISO {
...
@@ -20,13 +20,6 @@ namespace COMISO {
/// Constructor
/// Constructor
LinearConstraintHandlerPenalty
::
LinearConstraintHandlerPenalty
()
:
penalty_
(
10000
)
{}
LinearConstraintHandlerPenalty
::
LinearConstraintHandlerPenalty
()
:
penalty_
(
10000
)
{}
//-----------------------------------------------------------------------------
/// Destructor
LinearConstraintHandlerPenalty
::~
LinearConstraintHandlerPenalty
()
{}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// penalty weight
// penalty weight
...
...
NSolver/LinearConstraintHandlerPenalty.hh
View file @
295188fe
...
@@ -51,9 +51,6 @@ public:
...
@@ -51,9 +51,6 @@ public:
template
<
class
MatrixT
,
class
VectorT
>
template
<
class
MatrixT
,
class
VectorT
>
LinearConstraintHandlerPenalty
(
const
MatrixT
&
_C
,
const
VectorT
&
_c
);
LinearConstraintHandlerPenalty
(
const
MatrixT
&
_C
,
const
VectorT
&
_c
);
/// Destructor
~
LinearConstraintHandlerPenalty
();
// penalty weight
// penalty weight
double
&
penalty
();
double
&
penalty
();
...
...
NSolver/LinearProblem.cc
View file @
295188fe
...
@@ -15,10 +15,6 @@ namespace COMISO {
...
@@ -15,10 +15,6 @@ namespace COMISO {
x_
.
resize
(
_dimension
,
0.0
);
x_
.
resize
(
_dimension
,
0.0
);
}
}
LinearProblem
::~
LinearProblem
()
{
}
int
LinearProblem
::
n_unknowns
()
int
LinearProblem
::
n_unknowns
()
{
{
return
static_cast
<
int
>
(
coeffs_
.
size
());
return
static_cast
<
int
>
(
coeffs_
.
size
());
...
...
NSolver/LinearProblem.hh
View file @
295188fe
...
@@ -45,9 +45,6 @@ public:
...
@@ -45,9 +45,6 @@ public:
/// Default constructor
/// Default constructor
LinearProblem
(
std
::
size_t
_dimension
=
0
);
LinearProblem
(
std
::
size_t
_dimension
=
0
);
/// Destructor
virtual
~
LinearProblem
();
// problem definition
// problem definition
virtual
int
n_unknowns
();
virtual
int
n_unknowns
();
...
...
NSolver/NPDerivativeChecker.cc
View file @
295188fe
...
@@ -2,10 +2,4 @@
...
@@ -2,10 +2,4 @@
namespace
COMISO
{
namespace
COMISO
{
NPDerivativeChecker
::
NPDerivativeChecker
()
{}
NPDerivativeChecker
::~
NPDerivativeChecker
()
{}
}
}
NSolver/NPDerivativeChecker.hh
View file @
295188fe
...
@@ -60,12 +60,6 @@ public:
...
@@ -60,12 +60,6 @@ public:
double
relativeEps
;
double
relativeEps
;
};
};
/// Default constructor
NPDerivativeChecker
();
/// Destructor
~
NPDerivativeChecker
();
template
<
class
ProblemInterface
>
template
<
class
ProblemInterface
>
bool
check_all
(
ProblemInterface
*
_np
,
double
_dx
,
double
_eps
)
bool
check_all
(
ProblemInterface
*
_np
,
double
_dx
,
double
_eps
)
{
{
...
...
NSolver/NPLinearConstraints.cc
View file @
295188fe
...
@@ -31,9 +31,6 @@ NPLinearConstraintsElimination::NPLinearConstraintsElimination(NProblemGmmInterf
...
@@ -31,9 +31,6 @@ NPLinearConstraintsElimination::NPLinearConstraintsElimination(NProblemGmmInterf
this
->
initialize_identity
(
base_
->
n_unknowns
());