Convenience facades for driving netoptim oracles with the ellipsoid cutting-plane method.
More...
#include <cstddef>
#include <ellalgo/cutting_plane.hpp>
#include <ellalgo/ell_config.hpp>
#include <tuple>
Go to the source code of this file.
|
| auto | default_options () -> Options |
| | Build an Options using the library's default tolerance.
|
| template<typename O, typename S> |
| auto | solve_network_feas (O &omega, S &space, const Options &options=default_options()) -> std::tuple< CuttingPlaneArrayType< S >, size_t > |
| | Find a feasible point for a network feasibility problem.
|
| template<typename O, typename S, typename N> |
| auto | solve_opt_scaling (O &omega, S &space, N &gamma, const Options &options=default_options()) -> std::tuple< CuttingPlaneArrayType< S >, size_t > |
| | Maximize the scaling ratio for an optimal matrix scaling problem.
|
|
| constexpr double | kDefaultTolerance = 1e-10 |
| | Default convergence tolerance used by the solver facades.
|
Convenience facades for driving netoptim oracles with the ellipsoid cutting-plane method.
Mirrors the Python sibling's solve_network_feas / solve_opt_scaling facades: both forward an Options object (defaulting to a sensible tolerance) to the ellalgo drivers, and the feasibility facade uses the feasibility driver (cutting_plane_feas).
◆ default_options()
| auto default_options |
( |
| ) |
->Options |
|
inline |
Build an Options using the library's default tolerance.
◆ solve_network_feas()
template<typename O, typename S>
| auto solve_network_feas |
( |
O & | omega, |
|
|
S & | space, |
|
|
const Options & | options = default_options() )->std::tuple< CuttingPlaneArrayType< S >, size_t > |
|
inline |
Find a feasible point for a network feasibility problem.
- Template Parameters
-
| O | feasibility-oracle type (e.g. NetworkOracle) |
| S | search-space type (e.g. Ell) |
- Parameters
-
| [in,out] | omega | feasibility oracle |
| [in,out] | space | search space; its center is the starting iterate |
| [in] | options | algorithm control parameters |
- Returns
- tuple (x_best, num_iters) as returned by cutting_plane_feas
◆ solve_opt_scaling()
template<typename O, typename S, typename N>
| auto solve_opt_scaling |
( |
O & | omega, |
|
|
S & | space, |
|
|
N & | gamma, |
|
|
const Options & | options = default_options() )->std::tuple< CuttingPlaneArrayType< S >, size_t > |
|
inline |
Maximize the scaling ratio for an optimal matrix scaling problem.
- Template Parameters
-
| O | optimality-oracle type (e.g. OptScalingOracle) |
| S | search-space type (e.g. Ell) |
| N | numeric best-so-far type |
- Parameters
-
| [in,out] | omega | optimality oracle |
| [in,out] | space | search space; its center is the starting iterate |
| [in,out] | gamma | best-so-far optimal value, updated in place |
| [in] | options | algorithm control parameters |
- Returns
- tuple (x_best, num_iters) as returned by cutting_plane_optim
◆ kDefaultTolerance
| double kDefaultTolerance = 1e-10 |
|
inlineconstexpr |
Default convergence tolerance used by the solver facades.
Benchmarked with bench_optscaling on the project's fixed graph: the objective error scales as sqrt(tolerance), so 1e-10 yields ~1e-5 error at ~28% more runtime than 1e-8 (~1e-4 error). ellalgo's built-in 1e-20 is unreachable at double precision for most scales and only inflates the iteration count. Pass an explicit Options to override.