alpaqa 1.0.0a15
Nonconvex constrained optimization
Loading...
Searching...
No Matches
ipopt-json.cpp
Go to the documentation of this file.
1#include <alpaqa/ipopt-adapter-export.h>
3#include <nlohmann/json.hpp>
4
5#include <IpIpoptApplication.hpp>
6
7namespace alpaqa::params {
8
9template <>
10void IPOPT_ADAPTER_EXPORT set_param(Ipopt::IpoptApplication &, const json &j) {
11 if (!j.empty())
13 "JSON parameters for Ipopt are currently unsupported");
14}
15
16template <>
17void IPOPT_ADAPTER_EXPORT get_param(const Ipopt::IpoptApplication &, json &j) {
18 j = json::object();
19}
20
21} // namespace alpaqa::params
void get_param(const T &t, json &s)
Get the first argument as a JSON object j.
Definition json.tpp:85
void set_param(T &t, const json &j)
Update/overwrite the first argument based on the JSON object j.
Definition json.tpp:24
constexpr const auto inf
Definition config.hpp:85
Custom parameter parsing exception.
Definition json.hpp:33