Skip to main content

GamsConoptOptions

Struct GamsConoptOptions 

Source
pub struct GamsConoptOptions {
    pub raw: Vec<String>,
    /* private fields */
}
Expand description

Options for GAMS/CONOPT. Reference: https://www.gams.com/latest/docs/S_CONOPT.html

Fields§

§raw: Vec<String>

Extra option-file lines written verbatim, for options without a generated setter (or values a setter can’t express).

Implementations§

Source§

impl GamsConoptOptions

Source

pub fn flg_adj_ini_p(self, v: bool) -> Self

Set GAMS option Flg_AdjIniP (boolean, written as 1/0).

Source

pub fn flg_convex(self, v: bool) -> Self

Set GAMS option Flg_Convex (boolean, written as 1/0).

Source

pub fn flg_crash_slack(self, v: bool) -> Self

Set GAMS option Flg_Crash_Slack (boolean, written as 1/0).

Source

pub fn flg_dbg_intv(self, v: bool) -> Self

Set GAMS option Flg_Dbg_Intv (boolean, written as 1/0).

Source

pub fn flg_for_defc(self, v: bool) -> Self

Set GAMS option Flg_ForDefc (boolean, written as 1/0).

Source

pub fn flg_neg_curve(self, v: bool) -> Self

Set GAMS option Flg_NegCurve (boolean, written as 1/0).

Source

pub fn flg_no_defc(self, v: bool) -> Self

Set GAMS option Flg_NoDefc (boolean, written as 1/0).

Source

pub fn flg_no_pen(self, v: bool) -> Self

Set GAMS option Flg_NoPen (boolean, written as 1/0).

Source

pub fn flg_slp_mode(self, v: bool) -> Self

Set GAMS option Flg_SLPMode (boolean, written as 1/0).

Source

pub fn flg_sqp_mode(self, v: bool) -> Self

Set GAMS option Flg_SQPMode (boolean, written as 1/0).

Source

pub fn flg_square(self, v: bool) -> Self

Set GAMS option Flg_Square (boolean, written as 1/0).

Source

pub fn flg_trace_cns(self, v: bool) -> Self

Set GAMS option Flg_TraceCNS (boolean, written as 1/0).

Source

pub fn frq_rescale(self, v: i64) -> Self

Set GAMS option Frq_Rescale (integer).

Source

pub fn lim_err_2d_dir(self, v: i64) -> Self

Set GAMS option Lim_Err_2DDir (integer).

Source

pub fn lim_err_fnc_drv(self, v: i64) -> Self

Set GAMS option Lim_Err_Fnc_Drv (integer).

Source

pub fn lim_err_hessian(self, v: i64) -> Self

Set GAMS option Lim_Err_Hessian (integer).

Source

pub fn lim_iteration(self, v: i64) -> Self

Set GAMS option Lim_Iteration (integer).

Source

pub fn lim_new_super(self, v: i64) -> Self

Set GAMS option Lim_NewSuper (integer).

Source

pub fn lim_red_hess(self, v: i64) -> Self

Set GAMS option Lim_RedHess (integer).

Source

pub fn lim_slow_prg(self, v: i64) -> Self

Set GAMS option Lim_SlowPrg (integer).

Source

pub fn lim_stall_iter(self, v: i64) -> Self

Set GAMS option Lim_StallIter (integer).

Source

pub fn lim_start_degen(self, v: i64) -> Self

Set GAMS option Lim_Start_Degen (integer).

Source

pub fn lim_time(self, v: f64) -> Self

Set GAMS option Lim_Time (real).

Source

pub fn lim_variable(self, v: f64) -> Self

Set GAMS option Lim_Variable (real).

Source

pub fn lin_method(self, v: i64) -> Self

Set GAMS option Lin_Method (integer).

Source

pub fn mtd_dbg_1drv(self, v: i64) -> Self

Set GAMS option Mtd_Dbg_1Drv (integer).

Source

pub fn mtd_red_hess(self, v: i64) -> Self

Set GAMS option Mtd_RedHess (integer).

Source

pub fn mtd_scale(self, v: i64) -> Self

Set GAMS option Mtd_Scale (integer).

Source

pub fn mtd_step_phase0(self, v: i64) -> Self

Set GAMS option Mtd_Step_Phase0 (integer).

Source

pub fn mtd_step_tight(self, v: i64) -> Self

Set GAMS option Mtd_Step_Tight (integer).

Source

pub fn num_rounds(self, v: i64) -> Self

Set GAMS option Num_Rounds (integer).

Source

pub fn rat_no_pen(self, v: f64) -> Self

Set GAMS option Rat_NoPen (real).

Source

pub fn tol_bound(self, v: f64) -> Self

Set GAMS option Tol_Bound (real).

Source

pub fn tol_box_size(self, v: f64) -> Self

Set GAMS option Tol_BoxSize (real).

Source

pub fn tol_box_size_lin(self, v: f64) -> Self

Set GAMS option Tol_BoxSize_Lin (real).

Source

pub fn tol_box_lin_fac(self, v: f64) -> Self

Set GAMS option Tol_Box_LinFac (real).

Source

pub fn tol_def_mult(self, v: f64) -> Self

Set GAMS option Tol_Def_Mult (real).

Source

pub fn tol_feas_max(self, v: f64) -> Self

Set GAMS option Tol_Feas_Max (real).

Source

pub fn tol_feas_min(self, v: f64) -> Self

Set GAMS option Tol_Feas_Min (real).

Source

pub fn tol_feas_tria(self, v: f64) -> Self

Set GAMS option Tol_Feas_Tria (real).

Source

pub fn tol_fixed(self, v: f64) -> Self

Set GAMS option Tol_Fixed (real).

Source

pub fn tol_jac_min(self, v: f64) -> Self

Set GAMS option Tol_Jac_Min (real).

Source

pub fn tol_linesearch(self, v: f64) -> Self

Set GAMS option Tol_Linesearch (real).

Source

pub fn tol_obj_acc(self, v: f64) -> Self

Set GAMS option Tol_Obj_Acc (real).

Source

pub fn tol_obj_change(self, v: f64) -> Self

Set GAMS option Tol_Obj_Change (real).

Source

pub fn tol_optimality(self, v: f64) -> Self

Set GAMS option Tol_Optimality (real).

Source

pub fn tol_opt_infeas(self, v: f64) -> Self

Set GAMS option Tol_Opt_Infeas (real).

Source

pub fn tol_opt_lin_f(self, v: f64) -> Self

Set GAMS option Tol_Opt_LinF (real).

Source

pub fn tol_piv_abs(self, v: f64) -> Self

Set GAMS option Tol_Piv_Abs (real).

Source

pub fn tol_piv_abs_ini(self, v: f64) -> Self

Set GAMS option Tol_Piv_Abs_Ini (real).

Source

pub fn tol_piv_abs_nl_tr(self, v: f64) -> Self

Set GAMS option Tol_Piv_Abs_NLTr (real).

Source

pub fn tol_piv_ratio(self, v: f64) -> Self

Set GAMS option Tol_Piv_Ratio (real).

Source

pub fn tol_piv_rel(self, v: f64) -> Self

Set GAMS option Tol_Piv_Rel (real).

Source

pub fn tol_piv_rel_ini(self, v: f64) -> Self

Set GAMS option Tol_Piv_Rel_Ini (real).

Source

pub fn tol_piv_rel_updt(self, v: f64) -> Self

Set GAMS option Tol_Piv_Rel_Updt (real).

Source

pub fn tol_scale_max(self, v: f64) -> Self

Set GAMS option Tol_Scale_Max (real).

Source

pub fn tol_scale_min(self, v: f64) -> Self

Set GAMS option Tol_Scale_Min (real).

Source

pub fn tol_scale_var(self, v: f64) -> Self

Set GAMS option Tol_Scale_Var (real).

Source

pub fn tol_zero(self, v: f64) -> Self

Set GAMS option Tol_Zero (real).

Source

pub fn trace_min_step(self, v: f64) -> Self

Set GAMS option Trace_MinStep (real).

Source

pub fn flg_interv(self, v: bool) -> Self

Set GAMS option Flg_Interv (boolean, written as 1/0).

Source

pub fn flg_prep(self, v: bool) -> Self

Set GAMS option Flg_Prep (boolean, written as 1/0).

Source

pub fn flg_range(self, v: bool) -> Self

Set GAMS option Flg_Range (boolean, written as 1/0).

Source

pub fn lim_dbg_1drv(self, v: i64) -> Self

Set GAMS option Lim_Dbg_1Drv (integer).

Source

pub fn lim_hess_est(self, v: f64) -> Self

Set GAMS option Lim_Hess_Est (real).

Source

pub fn lim_msg_dbg_1drv(self, v: i64) -> Self

Set GAMS option Lim_Msg_Dbg_1Drv (integer).

Source

pub fn frq_log_simple(self, v: i64) -> Self

Set GAMS option Frq_Log_Simple (integer).

Source

pub fn frq_log_slp_sqp(self, v: i64) -> Self

Set GAMS option Frq_Log_SlpSqp (integer).

Source

pub fn lim_msg_large(self, v: i64) -> Self

Set GAMS option Lim_Msg_Large (integer).

Source

pub fn lim_pre_msg(self, v: i64) -> Self

Set GAMS option Lim_Pre_Msg (integer).

Source

pub fn cooptfile(self, v: impl Display) -> Self

Set GAMS option cooptfile (string).

Source

pub fn flg_2d_dir(self, v: bool) -> Self

Set GAMS option Flg_2DDir (boolean, written as 1/0).

Source

pub fn flg_hessian(self, v: bool) -> Self

Set GAMS option Flg_Hessian (boolean, written as 1/0).

Source

pub fn heaplimit(self, v: f64) -> Self

Set GAMS option HEAPLIMIT (real).

Source

pub fn hessian_mem_fac(self, v: f64) -> Self

Set GAMS option HessianMemFac (real).

Source

pub fn threadc(self, v: i64) -> Self

Set GAMS option THREADC (integer).

Source

pub fn threadf(self, v: i64) -> Self

Set GAMS option THREADF (integer).

Source

pub fn threads(self, v: i64) -> Self

Set GAMS option threads (integer).

Trait Implementations§

Source§

impl Clone for GamsConoptOptions

Source§

fn clone(&self) -> GamsConoptOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GamsConoptOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GamsConoptOptions

Source§

fn default() -> GamsConoptOptions

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.