Gnm.SolverParameters

g GObject.Object GObject.Object Gnm.SolverParameters Gnm.SolverParameters GObject.Object->Gnm.SolverParameters

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (sheet)

dup (new_sheet)

equal (b)

get_input ()

get_input_cells ()

get_target ()

get_target_cell ()

set_algorithm (algo)

set_input (v)

set_target (cr)

valid ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

problem-type

Gnm.SolverProblemType

r/w

Problem Type

sheet

Gnm.Sheet

r/w/co

Gnm.Sheet

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

constraints

[object]

r

input

Gnm.DepManaged

r

options

Gnm.SolverOptions

r

parent

GObject.Object

r

problem_type

Gnm.SolverProblemType

r

sheet

Gnm.Sheet

r

target

Gnm.DepManaged

r

Class Details

class Gnm.SolverParameters(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gnm.SolverParametersClass

classmethod new(sheet)
Parameters:

sheet (Gnm.Sheet) –

Return type:

Gnm.SolverParameters

dup(new_sheet)
Parameters:

new_sheet (Gnm.Sheet) – Gnm.Sheet

Returns:

duplicate self, but for new_sheet.

Return type:

Gnm.SolverParameters

equal(b)
Parameters:

b (Gnm.SolverParameters) –

Return type:

bool

get_input()
Returns:

the input cell area.

Return type:

Gnm.Value or None

get_input_cells()
Return type:

[Gnm.Cell]

get_target()
Return type:

Gnm.CellRef

get_target_cell()
Return type:

Gnm.Cell

set_algorithm(algo)
Parameters:

algo (Gnm.SolverFactory) –

set_input(v)
Parameters:

v (Gnm.Value or None) – new input area

set_target(cr)
Parameters:

cr (Gnm.CellRef) –

valid()
Raises:

GLib.Error

Return type:

bool

Property Details

Gnm.SolverParameters.props.problem_type
Name:

problem-type

Type:

Gnm.SolverProblemType

Default Value:

Gnm.SolverProblemType.MAXIMIZE

Flags:

READABLE, WRITABLE

Problem Type

Gnm.SolverParameters.props.sheet
Name:

sheet

Type:

Gnm.Sheet

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Gnm.Sheet