Public
LocalSearchSolvers._set_domain! — Method_set_domain!(m::Model, x, values)DOCSTRING
Arguments:
m: DESCRIPTIONx: DESCRIPTIONvalues: DESCRIPTION
LocalSearchSolvers.add! — Methodmts = - get_time_stamp(model)return TimeStamps(mts, mts, mts, mts, mts, mts, mts) end
add!(m::M, x) where M <: Union{Model, AbstractSolver}
add!(m::M, c) where M <: Union{Model, AbstractSolver}
add!(m::M, o) where M <: Union{Model, AbstractSolver}Add a variable x, a constraint c, or an objective o to m.
LocalSearchSolvers.add_value! — Methodadd_value!(m::M, x, val) where M <: Union{Model, AbstractSolver}Add val to x domain.
LocalSearchSolvers.add_var_to_cons! — Methodadd_var_to_cons!(m::M, c, x) where M <: Union{Model, AbstractSolver}Add x to the constraint c list of restricted variables.
LocalSearchSolvers.constraint! — Methodconstraint!(m::M, func, vars) where M <: Union{Model, AbstractSolver}Add a constraint with an error function func defined over variables vars.
LocalSearchSolvers.constraint — Methodconstraint(f, vars)DOCSTRING
LocalSearchSolvers.constriction — Methodconstriction(m::M, x) where M <: Union{Model, AbstractSolver}Return the constriction of variable x.
LocalSearchSolvers.delete_value! — Methoddelete_value(m::M, x, val) where M <: Union{Model, AbstractSolver}Delete val from x domain.
LocalSearchSolvers.delete_var_from_cons! — Methoddelete_var_from_cons(m::M, c, x) where M <: Union{Model, AbstractSolver}Delete x from the constraint c list of restricted variables.
LocalSearchSolvers.describe — Methoddescribe(m::M) where M <: Union{Model, AbstractSolver}Describe the model.
LocalSearchSolvers.draw — Methoddraw(m::M, x) where M <: Union{Model, AbstractSolver}Draw a random value of x domain.
LocalSearchSolvers.get_cons_from_var — Methodget_cons_from_var(m::M, x) where M <: Union{Model, AbstractSolver}Access the constraints restricting variable x.
LocalSearchSolvers.get_constraint — Methodget_constraint(m::M, c) where M <: Union{Model, AbstractSolver}Access the constraint c.
LocalSearchSolvers.get_constraints — Methodget_constraints(m::M) where M <: Union{Model, AbstractSolver}Access the constraints of m.
LocalSearchSolvers.get_domain — Methodget_domain(m::M, x) where M <: Union{Model, AbstractSolver}Access the domain of variable x.
LocalSearchSolvers.get_name — Methodget_name(m::M, x) where M <: Union{Model, AbstractSolver}Access the name of variable x.
LocalSearchSolvers.get_objective — Methodget_objective(m::M, o) where M <: Union{Model, AbstractSolver}Access the objective o.
LocalSearchSolvers.get_objectives — Methodget_objectives(m::M) where M <: Union{Model, AbstractSolver}Access the objectives of m.
LocalSearchSolvers.get_variable — Methodget_variable(m::M, x) where M <: Union{Model, AbstractSolver}Access the variable x.
LocalSearchSolvers.get_variables — Methodget_variables(m::M) where M <: Union{Model, AbstractSolver}Access the variables of m.
LocalSearchSolvers.get_vars_from_cons — Methodget_vars_from_cons(m::M, c) where M <: Union{Model, AbstractSolver}Access the variables restricted by constraint c.
LocalSearchSolvers.is_sat — Methodis_sat(m::M) where M <: Union{Model, AbstractSolver}Return true if m is a satisfaction model.
LocalSearchSolvers.length_cons — Methodlength_cons(m::M, c) where M <: Union{Model, AbstractSolver}Return the length of constraint c.
LocalSearchSolvers.length_cons — Methodlength_cons(m::M) where M <: Union{Model, AbstractSolver}Return the number of constraints in m.
LocalSearchSolvers.length_var — Methodlength_var(m::M, x) where M <: Union{Model, AbstractSolver}Return the domain length of variable x.
LocalSearchSolvers.max_domains_size — Methodmax_domains_size(m::Model, vars) = beginDOCSTRING
LocalSearchSolvers.model — Methodmodel()Construct a _Model, empty by default. It is recommended to add the constraints, variables, and objectives from an empty _Model. The following keyword arguments are available,
vars=Dictionary{Int,Variable}(): collection of variablescons=Dictionary{Int,Constraint}(): collection of cosntraintsobjs=Dictionary{Int,Objective}(): collection of objectiveskind=:generic: the kind of problem modeled (useful for specialized methods such as pretty printing)
LocalSearchSolvers.o_dist_extrema — Methoddist_extrema(values::T...) where {T <: Number}Computes the distance between extrema in an ordered set.
LocalSearchSolvers.o_mincut — Methodo_mincut(graph, values; interdiction = 0)Compute the capacity of a cut (determined by the state of the solver) with a possible interdiction on the highest capacited links.
LocalSearchSolvers.objective! — Methodobjective!(m::M, func) where M <: Union{Model, AbstractSolver}Add an objective evaluated by func.
LocalSearchSolvers.objective — Methodobjective(func, name)Construct an objective with a function func that should be applied to a collection of variables.
LocalSearchSolvers.solution — Methodsolution(s)Return the only/best known solution of a satisfaction/optimization model.
LocalSearchSolvers.specialize! — Methodspecialize!(solver)Replace the model of solver by one with specialized types (variables, constraints, objectives).
LocalSearchSolvers.specialize — Methodspecialize(m::M) where M <: Union{Model, AbstractSolver}Specialize the structure of a model to avoid dynamic type attribution at runtime.
LocalSearchSolvers.status — Methodstatus(solver)Return the status of a MainSolver.
LocalSearchSolvers.variable! — Functionvariable!(m::M, d) where M <: Union{Model, AbstractSolver}Add a variable with domain d to m.
LocalSearchSolvers.variable — Methodvariable(values::AbstractVector{T}, name::AbstractString; domain = :set) where T <: Number
variable(domain::AbstractDomain, name::AbstractString) where D <: AbstractDomainConstruct a variable with discrete domain. See the domain method for other options.
d = domain([1,2,3,4], types = :indices)
x1 = variable(d, "x1")
x2 = variable([-89,56,28], "x2", domain = :indices)