PolyFEM
|
#include <Optimizations.hpp>
Static Public Member Functions | |
static json | apply_opt_json_spec (const json &input_args, bool strict_validation) |
static std::shared_ptr< polysolve::nonlinear::Solver > | make_nl_solver (const json &solver_params, const json &linear_solver_params, const double characteristic_length) |
static std::shared_ptr< State > | create_state (const json &args, CacheLevel level, const size_t max_threads) |
static std::vector< std::shared_ptr< State > > | create_states (const json &state_args, const CacheLevel &level, const size_t max_threads) |
static Eigen::VectorXd | inverse_evaluation (const json &args, const int ndof, const std::vector< int > &variable_sizes, VariableToSimulationGroup &var2sim) |
static void | solve_pde (State &state) |
static std::shared_ptr< AdjointForm > | create_form (const json &args, const VariableToSimulationGroup &var2sim, const std::vector< std::shared_ptr< State > > &states) |
static std::shared_ptr< AdjointForm > | create_simple_form (const std::string &obj_type, const std::string ¶m_type, const std::shared_ptr< State > &state, const json &args) |
static std::shared_ptr< Parametrization > | create_parametrization (const json &args, const std::vector< std::shared_ptr< State > > &states, const std::vector< int > &variable_sizes) |
static std::unique_ptr< VariableToSimulation > | create_variable_to_simulation (const json &args, const std::vector< std::shared_ptr< State > > &states, const std::vector< int > &variable_sizes) |
static int | compute_variable_size (const json &args, const std::vector< std::shared_ptr< State > > &states) |
Definition at line 25 of file Optimizations.hpp.
|
static |
Definition at line 579 of file Optimizations.cpp.
References polyfem::solver::apply_objective_json_spec(), and polyfem::logger().
Referenced by polyfem::OptState::init().
|
static |
Definition at line 638 of file Optimizations.cpp.
References polyfem::log_and_throw_adjoint_error().
Referenced by polyfem::OptState::init_variables().
|
static |
Definition at line 128 of file Optimizations.cpp.
References create_form(), create_parametrization(), polyfem::F, polyfem::log_and_throw_adjoint_error(), polyfem::log_and_throw_error(), polyfem::io::OBJReader::read(), and V.
Referenced by create_form(), and polyfem::OptState::create_problem().
|
static |
Definition at line 367 of file Optimizations.cpp.
References polyfem::log_and_throw_adjoint_error(), and vals.
Referenced by create_form(), and create_variable_to_simulation().
|
static |
Definition at line 82 of file Optimizations.cpp.
References polyfem::solver::VariableToSimulation::create(), polyfem::log_and_throw_adjoint_error(), and polyfem::solver::VariableToSimulationGroup::push_back().
|
static |
Definition at line 497 of file Optimizations.cpp.
Referenced by create_states().
|
static |
Definition at line 528 of file Optimizations.cpp.
References create_state(), load_json(), and polyfem::log_and_throw_adjoint_error().
Referenced by polyfem::OptState::create_states().
|
static |
Definition at line 446 of file Optimizations.cpp.
References polyfem::solver::VariableToSimulation::create(), and create_parametrization().
Referenced by polyfem::solver::VariableToSimulationGroup::init().
|
static |
Definition at line 467 of file Optimizations.cpp.
References x.
Referenced by polyfem::OptState::initial_guess().
|
static |
Definition at line 69 of file Optimizations.cpp.
References polyfem::adjoint_logger(), and polyfem::log_and_throw_adjoint_error().
Referenced by polyfem::OptState::solve().
|
static |
Definition at line 543 of file Optimizations.cpp.
References polyfem::State::assemble_mass_mat(), polyfem::State::assemble_rhs(), and polyfem::State::solve_problem().