LINE Solver (C++)
Templated C++ port of the LINE queueing solver
Loading...
Searching...
No Matches
solver_nc_dt.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2012-2026, QORE Lab, Imperial College London
3 * All rights reserved.
4 */
5#ifndef LINE_SOLVERS_NC_SOLVER_NC_DT_H
6#define LINE_SOLVERS_NC_SOLVER_NC_DT_H
7
8/**
9 * @file
10 * @ingroup line_solvers
11 * Exact normalizing-constant analysis of a discrete-time (slotted) model.
12 *
13 * Port of matlab/src/solvers/NC/nc_is_dt_model.m and
14 * solver_nc_dt_analyzer.m. The route is requested with
15 * `NcSolverOptions::slotted` (or timescale "discrete"), read by
16 * `solvers::slotted_request` exactly as SolverMAM and SolverLDES read it, and
17 * is never auto-detected: a Geometric service time is a perfectly ordinary
18 * continuous-time model unless the caller says the model lives on a slot
19 * lattice.
20 *
21 * The slot must be the unit one. The slot length is the lattice unit, not a
22 * rescaling of the laws, and a Geometric(p) steps in whole time units: on a
23 * slot d > 1 it is off the lattice, and on d = 1/m it spends m slots per step,
24 * which is no longer the one-step Bernoulli server the product form needs.
25 *
26 * Two families are covered, both from Daduna (2001):
27 *
28 * chapter 2 a Bernoulli server fed by a Bernoulli arrival stream, with an
29 * unbounded buffer (theorem 2.3, corollary 2.7), a finite buffer
30 * (corollary 2.8) or a load-dependent service probability
31 * (example 2.10), evaluated by `dqsys_bernoulli1`;
32 * chapter 3 a closed cycle of Bernoulli servers (theorem 3.2, corollary
33 * 3.4), evaluated by `dpfqn_nc` when the service probabilities
34 * are state independent and by `dpfqn_ncld` otherwise.
35 *
36 * THE ADMISSIBLE FEATURE SET IS NARROW BECAUSE THE PRODUCT FORM IS NARROW.
37 * Beyond the geometric service requirement:
38 *
39 * - a cycle is the only topology; section 4.1 of the reference records that
40 * general discrete-time topologies of FCFS Bernoulli servers have no
41 * product form;
42 * - every station must be a single server. Pestien and Ramakrishnan, quoted
43 * before example 2.10, proved that a multiserver node inside a cycle of
44 * geometrical queues destroys the product form for ANY finite server
45 * count, so the multiserver case is refused rather than approximated;
46 * - class switching is rejected, and a multichain cycle is admitted only
47 * through its aggregate population.
48 *
49 * A model that fails any of these is an ERROR, not a fallback to the
50 * continuous-time analyzer: the continuous-time answer to a slotted question is
51 * a different number, not a worse one.
52 *
53 * Every metric is on the slot lattice, which `nc_is_dt_model` requires to be
54 * the unit one: a Geometric(p) is the same law in every solver, so its per-slot
55 * probability is p only on a slot of length 1. Rates are therefore per-slot
56 * probabilities and times are numbers of slots, which are also model time units.
57 *
58 * Metrics are SLOT-BOUNDARY values (late arrival with delayed access): the
59 * state is read after the arrivals of a slot and before its departures, the
60 * stationary law phi of Chao, Miyazawa and Pinedo (1999), example 12.10. The
61 * slot-inside law psi gives a smaller queue and a response time one slot
62 * shorter.
63 */
64
65#include <cmath>
66#include <cstddef>
67#include <cstdio>
68#include <limits>
69#include <string>
70#include <vector>
71
77#include "line/util/error.h"
78
79namespace line {
80namespace nc {
81
82/** Classification of a model against the discrete-time product form. */
83template <class T>
84struct DtModel {
85 std::string kind = "none"; ///< "bernoulli1", "cycle" or "none"
86 std::string reason; ///< why not, when kind is "none"
87 std::size_t station = 0; ///< 0-based queueing station (bernoulli1)
88 std::size_t source = 0; ///< 0-based Source station (bernoulli1)
89 T arrival_prob; ///< offered b (bernoulli1)
90 std::vector<T> service_single; ///< p(n), n = 1..L (bernoulli1)
91 std::size_t capacity = 0; ///< 0 means unbounded
92 std::vector<std::size_t> order; ///< stations in cycle order
93 std::vector<std::vector<T> > service; ///< p_j(n), [cycle position][n-1]
94 std::size_t population = 0;
95};
96
97namespace detail {
98
99/** Load-dependent scaling of station `ist` expanded to alpha(1..N). */
100template <class T>
101std::vector<T> dt_lld_vector(const qn::NetworkStruct<T>& sn, std::size_t ist, std::size_t N) {
102 const T one = num_traits<T>::from_int(1);
103 std::vector<T> alpha(N, one);
104 const std::vector<T>& lld = sn.stations[ist].lldscaling;
105 if (lld.empty()) return alpha;
106 bool varies = false;
107 for (std::size_t k = 0; k < lld.size(); ++k) {
108 if (!(lld[k] == one)) { varies = true; break; }
109 }
110 if (!varies) return alpha;
111 // Hold the last declared value beyond the tabulated range, as the
112 // load-dependent normalizing-constant analyzers do.
113 for (std::size_t n = 0; n < N; ++n) {
114 alpha[n] = (n < lld.size()) ? lld[n] : lld[lld.size() - 1];
115 }
116 return alpha;
117}
118
119/** True when station `ist` declares a load dependence. */
120template <class T>
121bool dt_has_lld(const qn::NetworkStruct<T>& sn, std::size_t ist) {
122 const T one = num_traits<T>::from_int(1);
123 const std::vector<T>& lld = sn.stations[ist].lldscaling;
124 for (std::size_t k = 0; k < lld.size(); ++k) {
125 if (!(lld[k] == one)) return true;
126 }
127 return false;
128}
129
130/** Effective buffer capacity of station `ist`, 0 when unbounded. */
131template <class T>
132std::size_t dt_capacity(const qn::NetworkStruct<T>& sn, std::size_t ist, std::size_t r) {
133 double cap = sn.stations[ist].cap;
134 if (!sn.classcap.empty() && ist < sn.classcap.size() && r < sn.classcap[ist].size()) {
135 const double cc = sn.classcap[ist][r];
136 if (cc < cap) cap = cc;
137 }
138 if (!std::isfinite(cap) || cap <= 0) return 0;
139 return static_cast<std::size_t>(cap);
140}
141
142/**
143 * Station order along the cycle, or empty when the routing is not a single
144 * deterministic cycle visiting every station exactly once.
145 */
146template <class T>
147std::vector<std::size_t> dt_cycle_order(const qn::NetworkStruct<T>& sn) {
148 const std::size_t M = sn.nstations, R = sn.nclasses;
149 const api::SnRtStations<T> rt = api::sn_rt_stations(sn);
150 const Matrix<T>& rtst = rt.rtst;
151 const double tol = 1e-8, coarse = 1e-3;
152
153 std::vector<std::size_t> succ(M, 0);
154 for (std::size_t i = 0; i < M; ++i) {
155 long tgt = -1;
156 for (std::size_t j = 0; j < M; ++j) {
157 double w = 0;
158 for (std::size_t r = 0; r < R; ++r) {
159 for (std::size_t s = 0; s < R; ++s) {
160 w += num_traits<T>::to_double(rtst(i * R + r, j * R + s));
161 }
162 }
163 if (w > tol) {
164 if (std::fabs(w - static_cast<double>(R)) > coarse && std::fabs(w - 1.0) > coarse) {
165 return std::vector<std::size_t>(); // fractional routing out of i
166 }
167 if (tgt >= 0) return std::vector<std::size_t>(); // more than one successor
168 tgt = static_cast<long>(j);
169 }
170 }
171 if (tgt < 0 || static_cast<std::size_t>(tgt) == i) return std::vector<std::size_t>();
172 succ[i] = static_cast<std::size_t>(tgt);
173 }
174
175 std::vector<bool> visited(M, false);
176 std::vector<std::size_t> order;
177 std::size_t cur = 0;
178 for (std::size_t k = 0; k < M; ++k) {
179 if (visited[cur]) return std::vector<std::size_t>();
180 visited[cur] = true;
181 order.push_back(cur);
182 cur = succ[cur];
183 }
184 if (cur != 0) return std::vector<std::size_t>();
185 for (std::size_t i = 0; i < M; ++i) {
186 if (!visited[i]) return std::vector<std::size_t>();
187 }
188 return order;
189}
190
191} // namespace detail
192
193/**
194 * Classify `sn` against the two discrete-time product-form families.
195 * `slot_length` is the resolved lattice unit; anything but 1 is kind "none".
196 */
197template <class T>
198DtModel<T> nc_is_dt_model(const qn::NetworkStruct<T>& sn, double slot_length = 1.0) {
199 DtModel<T> dt;
200 if (std::abs(slot_length - 1.0) > 1e-8) { // GlobalConstants.FineTol, as in MATLAB
201 char buf[64];
202 std::snprintf(buf, sizeof(buf), "%g", slot_length);
203 dt.reason = std::string("the slot length is ") + buf +
204 ", but a Bernoulli server needs the unit slot: a Geometric steps in whole "
205 "time units, so on any other lattice it is not a one-slot geometric server "
206 "(SolverMAM and SolverLDES accept other lattices)";
207 return dt;
208 }
209 const std::size_t M = sn.nstations, R = sn.nclasses;
210 const T zero = num_traits<T>::from_int(0);
211 const T one = num_traits<T>::from_int(1);
212
213 for (std::size_t i = 0; i < M; ++i) {
214 for (std::size_t r = 0; r < R; ++r) {
215 const T rate = sn.rates(i, r);
216 if (rate > zero) {
217 if (sn.procid(i + 1, r + 1) != qn::ProcessType::GEOMETRIC) {
218 dt.reason = "a station serves a class with a non-Geometric process; a "
219 "discrete-time model needs Geometric service and interarrival times";
220 return dt;
221 }
222 }
223 }
224 }
225 for (std::size_t i = 0; i < M; ++i) {
226 if (sn.stations[i].cdscaling || sn.stations[i].jdscaling) {
227 dt.reason = "class- or joint-dependent scaling is not covered by the discrete-time "
228 "product form";
229 return dt;
230 }
231 }
232
233 const std::vector<double> njobs = sn.njobs();
234 bool is_open = false;
235 for (std::size_t r = 0; r < njobs.size(); ++r) {
236 if (std::isinf(njobs[r])) { is_open = true; break; }
237 }
238
239 if (is_open) {
240 if (R != 1) {
241 dt.reason = "the discrete-time single-node route handles one open class";
242 return dt;
243 }
244 std::size_t src = 0, nsrc = 0, ist = 0, nq = 0;
245 for (std::size_t i = 0; i < M; ++i) {
246 if (sn.stations[i].sched == qn::SchedStrategy::EXT) { src = i; ++nsrc; }
247 else { ist = i; ++nq; }
248 }
249 if (nsrc != 1) {
250 dt.reason = "an open discrete-time model needs exactly one Source";
251 return dt;
252 }
253 if (nq != 1) {
254 dt.reason = "the discrete-time single-node route handles one queueing station";
255 return dt;
256 }
257 if (sn.stations[ist].sched != qn::SchedStrategy::FCFS) {
258 dt.reason = "a Bernoulli server is a FCFS station";
259 return dt;
260 }
261 if (std::isfinite(sn.stations[ist].nservers) && sn.stations[ist].nservers != 1.0) {
262 dt.reason = "a Bernoulli server is a single-server station; use load dependence for "
263 "the multiserver approximation of example 2.10";
264 return dt;
265 }
266 const T b = sn.rates(src, 0), p = sn.rates(ist, 0);
267 if (!(b > zero) || b > one) {
268 dt.reason = "the source arrival probability must lie in (0,1]";
269 return dt;
270 }
271 if (!(p > zero) || p > one) {
272 dt.reason = "the service probability must lie in (0,1]";
273 return dt;
274 }
275 const std::size_t cap = detail::dt_capacity(sn, ist, 0);
276 const bool has_lld = detail::dt_has_lld(sn, ist);
277 if (cap == 0 && has_lld) {
278 dt.reason = "a load-dependent Bernoulli server needs a finite capacity to bound the "
279 "state space";
280 return dt;
281 }
282 if (cap == 0 && !(b < p)) {
283 dt.reason = "an unbounded discrete-time queue needs an arrival probability below the "
284 "service probability";
285 return dt;
286 }
287 if (cap == 0) {
288 dt.service_single.assign(1, p);
289 } else {
290 const std::vector<T> alpha = detail::dt_lld_vector(sn, ist, cap);
291 dt.service_single.resize(cap);
292 for (std::size_t n = 0; n < cap; ++n) {
293 dt.service_single[n] = p * alpha[n];
294 if (!(dt.service_single[n] > zero) || dt.service_single[n] > one) {
295 dt.reason = "load dependence must keep the service probability inside (0,1]";
296 return dt;
297 }
298 }
299 }
300 dt.kind = "bernoulli1";
301 dt.station = ist;
302 dt.source = src;
303 dt.arrival_prob = b;
304 dt.capacity = cap;
305 return dt;
306 }
307
308 double Ntot = 0;
309 for (std::size_t r = 0; r < njobs.size(); ++r) {
310 if (std::isfinite(njobs[r])) Ntot += njobs[r];
311 }
312 if (Ntot <= 0 || Ntot != std::floor(Ntot)) {
313 dt.reason = "the closed population must be a positive integer";
314 return dt;
315 }
316 const std::size_t N = static_cast<std::size_t>(Ntot);
317
318 std::vector<T> p(M, zero);
319 for (std::size_t i = 0; i < M; ++i) {
320 if (sn.stations[i].sched != qn::SchedStrategy::FCFS) {
321 dt.reason = "a cycle of Bernoulli servers is FCFS throughout";
322 return dt;
323 }
324 if (std::isfinite(sn.stations[i].nservers) && sn.stations[i].nservers != 1.0) {
325 dt.reason = "a multiserver node inside a cycle of geometrical queues has no product "
326 "form";
327 return dt;
328 }
329 bool seen = false;
330 T lo = zero, hi = zero;
331 for (std::size_t r = 0; r < R; ++r) {
332 const T v = sn.rates(i, r);
333 if (v > zero) {
334 if (!seen) { lo = v; hi = v; seen = true; }
335 else { if (v < lo) lo = v; if (v > hi) hi = v; }
336 }
337 }
338 if (!seen) {
339 dt.reason = "a station of the cycle serves no class";
340 return dt;
341 }
342 if (num_traits<T>::to_double(hi - lo) > 1e-8 * num_traits<T>::to_double(hi)) {
343 dt.reason = "a station has a class-dependent service probability; the discrete-time "
344 "cycle needs one Bernoulli server per node";
345 return dt;
346 }
347 p[i] = lo;
348 if (!(p[i] > zero) || !(p[i] < one)) {
349 dt.reason = "the product form of theorem 3.2 needs every service probability in (0,1)";
350 return dt;
351 }
352 }
353
354 const std::vector<std::size_t> order = detail::dt_cycle_order(sn);
355 if (order.empty()) {
356 dt.reason = "the stations do not form a single deterministic cycle; discrete-time FCFS "
357 "networks of other topologies have no product form";
358 return dt;
359 }
360
361 dt.service.assign(M, std::vector<T>(N, zero));
362 for (std::size_t k = 0; k < M; ++k) {
363 const std::vector<T> alpha = detail::dt_lld_vector(sn, order[k], N);
364 for (std::size_t n = 0; n < N; ++n) {
365 dt.service[k][n] = p[order[k]] * alpha[n];
366 if (!(dt.service[k][n] > zero) || dt.service[k][n] > one) {
367 dt.reason = "load dependence must keep every service probability inside (0,1]";
368 return dt;
369 }
370 }
371 }
372 dt.kind = "cycle";
373 dt.order = order;
374 dt.population = N;
375 return dt;
376}
377
378/**
379 * Exact discrete-time analysis of `sn`.
380 *
381 * On the cycle route the per-class split is proportional to the per-class
382 * population. Service in the cycle is type independent and FCFS forbids
383 * overtaking, so the cyclic order of the jobs is frozen; the marginal law of
384 * the queue lengths carries no class information, and the long-run share of
385 * station j held by chain g is its population share N_g/N. That is the sense in
386 * which section 3.2 of the reference calls the multichain case a direct
387 * adaptation of the unichain one.
388 */
389template <class T>
391 const DtModel<T> dt = nc_is_dt_model(
392 sn, solvers::slotted_request(opt.timescale, opt.slotted, opt.slotlength).slot_length);
393 const std::size_t M = sn.nstations, K = sn.nclasses;
394 const T zero = num_traits<T>::from_int(0);
395 const T one = num_traits<T>::from_int(1);
396
397 NcSolution<T> out;
398 out.sol.Q = Matrix<T>(M, K, zero);
399 out.sol.U = Matrix<T>(M, K, zero);
400 out.sol.R = Matrix<T>(M, K, zero);
401 out.sol.Tp = Matrix<T>(M, K, zero);
402 out.sol.C.assign(K, zero);
403 out.sol.X.assign(K, zero);
404 out.sol.iter = 1;
405
406 if (dt.kind == "bernoulli1") {
407 out.sol.method = "dt.bernoulli1";
408 std::vector<T> b(1, dt.arrival_prob);
410 if (dt.capacity == 0) {
411 // An unbounded buffer is the finite chain taken far enough out that
412 // the geometric tail is below the working precision; the closed form
413 // of corollary 2.7 agrees with it term for term.
414 const double ratio = num_traits<T>::to_double(dt.arrival_prob)
418 std::size_t L = 64;
419 if (ratio > 0 && ratio < 1) {
420 const std::size_t need = static_cast<std::size_t>(std::ceil(std::log(1e-18)
421 / std::log(ratio)));
422 if (need > L) L = need;
423 }
424 if (L > 100000) L = 100000;
426 } else {
428 }
429 out.sol.Q(dt.station, 0) = r.meanQueueLength;
430 out.sol.U(dt.station, 0) = r.utilization;
431 out.sol.Tp(dt.station, 0) = r.throughput;
432 out.sol.R(dt.station, 0) = r.meanSojournTime;
433 out.sol.X[0] = r.throughput;
434 out.sol.C[0] = r.meanSojournTime;
435 // The Source row carries the offered stream, as on the continuous-time route.
436 out.sol.Tp(dt.source, 0) = dt.arrival_prob;
437 out.sol.lG = std::log(num_traits<T>::to_double(r.normConst));
438 } else if (dt.kind == "cycle") {
439 const std::size_t N = dt.population;
440 bool state_independent = true;
441 for (std::size_t k = 0; k < dt.service.size() && state_independent; ++k) {
442 for (std::size_t n = 1; n < dt.service[k].size(); ++n) {
443 if (!(dt.service[k][n] == dt.service[k][0])) { state_independent = false; break; }
444 }
445 }
446 std::vector<T> Qs(M, zero), Us(M, zero), Ts(M, zero);
447 if (state_independent) {
448 // Propositions 3.18 and 3.19 end to end, with the index of corollary
449 // 3.20(a) corrected (see dpfqn_nc.h).
450 out.sol.method = "dt.cycle";
451 std::vector<T> p(M);
452 for (std::size_t k = 0; k < M; ++k) p[k] = dt.service[k][0];
454 const T x = nc.throughput();
455 for (std::size_t k = 0; k < M; ++k) {
456 const T q = one - p[k];
457 T ratio = one, tail = zero;
458 for (std::size_t n = 1; n <= N; ++n) {
459 ratio = ratio * q / p[k];
460 tail = tail + ratio / q * nc.G1[N - n + 1] / nc.G;
461 }
462 Qs[dt.order[k]] = tail; // E[X_j] = sum_{n>=1} P(X_j>=n)
463 Us[dt.order[k]] = x / p[k]; // P(X_j >= 1)
464 Ts[dt.order[k]] = x;
465 }
466 out.sol.lG = nc.lG;
467 } else {
468 out.sol.method = "dt.cycleld";
470 for (std::size_t k = 0; k < M; ++k) {
471 const std::vector<T> marg = nc.marginal(k);
472 T q = zero, t = zero;
473 for (std::size_t n = 0; n <= N; ++n) {
474 q = q + marg[n] * num_traits<T>::from_int(static_cast<long>(n));
475 if (n >= 1) t = t + marg[n] * dt.service[k][n - 1];
476 }
477 Qs[dt.order[k]] = q;
478 Us[dt.order[k]] = one - marg[0];
479 Ts[dt.order[k]] = t;
480 }
481 out.sol.lG = nc.lG;
482 }
483
484 const std::vector<double> njobs = sn.njobs();
485 for (std::size_t i = 0; i < M; ++i) {
486 for (std::size_t r = 0; r < K; ++r) {
487 const T share = num_traits<T>::from_double(
488 std::isfinite(njobs[r]) ? njobs[r] / static_cast<double>(N) : 0.0);
489 out.sol.Q(i, r) = Qs[i] * share;
490 out.sol.U(i, r) = Us[i] * share;
491 out.sol.Tp(i, r) = Ts[i] * share;
492 if (out.sol.Tp(i, r) > zero) {
493 out.sol.R(i, r) = out.sol.Q(i, r) / out.sol.Tp(i, r);
494 }
495 }
496 }
497 for (std::size_t r = 0; r < K; ++r) {
498 const std::size_t ref = sn.classes[r].refstat;
499 if (ref >= 1 && ref <= M) out.sol.X[r] = out.sol.Tp(ref - 1, r);
500 if (out.sol.X[r] > zero && std::isfinite(njobs[r])) {
501 out.sol.C[r] = num_traits<T>::from_double(njobs[r]) / out.sol.X[r];
502 }
503 }
504 } else {
505 throw InputError("solver_nc_dt: a discrete time scale was requested but the model is "
506 "not a discrete-time product-form model: " + dt.reason);
507 }
508
509 out.actualmethod = out.sol.method;
510 return out;
511}
512
513} // namespace nc
514} // namespace line
515
516#endif // LINE_SOLVERS_NC_SOLVER_NC_DT_H
InputError(const std::string &what)
Definition error.h:105
A network plus its refreshed NetworkStruct.
Normalizing constants of a discrete-time closed cycle of Bernoulli servers.
State dependent Bernoulli server on a discrete time scale.
The exception types the port throws.
SnRtStations< T > sn_rt_stations(const qn::NetworkStruct< T > &sn)
DtNcLdResult< T > dpfqn_ncld(const std::vector< std::vector< T > > &P, std::size_t N)
Theorem 3.2 for a cycle whose service probabilities depend on the local queue length.
Definition dpfqn_nc.h:205
DtNcResult< T > dpfqn_nc(const std::vector< T > &p, std::size_t N)
Propositions 3.18 and 3.19 for a cycle with state independent service probabilities.
Definition dpfqn_nc.h:113
Bernoulli1InfiniteResult< T > dqsys_bernoulli1(const T &b, const T &p)
dqsys_bernoulli1(b, p) with the reference's default L = Inf.
NcSolution< T > solver_nc_dt(const qn::NetworkStruct< T > &sn, const NcSolverOptions &opt)
Exact discrete-time analysis of sn.
DtModel< T > nc_is_dt_model(const qn::NetworkStruct< T > &sn, double slot_length=1.0)
Classify sn against the two discrete-time product-form families.
SlottedRequest slotted_request(std::string timescale, bool slotted, double slotlength)
Resolves timescale (empty reads as "auto"), slotted and slotlength as they come from options....
Conservation laws of a layered queueing network, enumerated from its structure.
Definition aoi_dist2ph.h:51
Controls and result shape shared by the normalizing-constant analyzers.
A queueing network and its refreshed NetworkStruct.
Port of matlab/src/api/sn/sn_rt_stations.m.
Constants of the state dependent cycle, in one common scale.
Definition dpfqn_nc.h:87
Constants of the state independent cycle, in one common scale.
Definition dpfqn_nc.h:76
Steady-state quantities of a finite-buffer Bernoulli server.
T throughput
carried departures per slot
T meanSojournTime
in slots, by Little's law
Classification of a model against the discrete-time product form.
std::vector< std::vector< T > > service
p_j(n), [cycle position][n-1]
std::vector< T > service_single
p(n), n = 1..L (bernoulli1)
std::size_t station
0-based queueing station (bernoulli1)
std::size_t capacity
0 means unbounded
T arrival_prob
offered b (bernoulli1)
std::string reason
why not, when kind is "none"
std::string kind
"bernoulli1", "cycle" or "none"
std::size_t population
std::size_t source
0-based Source station (bernoulli1)
std::vector< std::size_t > order
stations in cycle order
The [Q,U,R,T,C,X,lG] of the reference, plus the algorithm that ran.
Definition nc_types.h:134
mva::MvaSolution< T > sol
Definition nc_types.h:135
std::string actualmethod
Definition nc_types.h:136
Controls, defaulting to SolverOptions('NC') in the reference.
Definition nc_types.h:35