---
name: "sc_GDIISOpt"
section: "3"
platform: "linux"
package: "libsc-doc"
version: "2.3.1-22"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sc_GDIISOpt"
---

# sc\_GDIISOpt(3)

## NAME

sc::GDIISOpt

## SYNOPSIS

Inherits **sc::Optimize**.

### Public Member Functions

**GDIISOpt** (const **Ref**\< **KeyVal** \> &)\
 **GDIISOpt** (**StateIn** &)\
 void **save\_data\_state** (**StateOut** &)\
 Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them.  void **init** ()\
 Initialize the optimizer.  int **update** ()\
 Take a step.

### Protected Attributes

int **nsave**\
 int **diis\_iter**\
 double **maxabs\_gradient**\
 double **convergence\_**\
 double **accuracy\_**\
 **RefSCVector** \* **coords\_**\
 **RefSCVector** \* **grad\_**\
 **RefSCVector** \* **error\_**\
 **RefSymmSCMatrix** **ihessian\_**\
 **Ref**\< **HessianUpdate** \> **update\_**\

### Additional Inherited Members

## Member Function Documentation

### void sc::GDIISOpt::init ()` [virtual]`

Initialize the optimizer.

Reimplemented from **sc::Optimize**.

### void sc::GDIISOpt::save\_data\_state (StateOut &)` [virtual]`

Save the base classes (with save\_data\_state) and the members in the same order that the **StateIn** CTOR initializes them. This must be implemented by the derived class if the class has data.

Reimplemented from **sc::SavableState**.

### int sc::GDIISOpt::update ()` [virtual]`

Take a step. Returns 1 if the optimization has converged, otherwise 0.

Implements **sc::Optimize**.

## Author

Generated automatically by Doxygen for MPQC from the source code.
