pub struct AcScucSolution { /* private fields */ }Expand description
The AC security constrained unit commitment solution over the shared instance.
Implementations§
Source§impl AcScucSolution
impl AcScucSolution
Sourcepub fn new(
instance: Arc<AcScucInstance>,
termination: Termination,
network_outputs: ScucNetworkOutputs,
device_outputs: ScucDeviceOutputs,
objective: Option<f64>,
) -> Result<Self, Error>
pub fn new( instance: Arc<AcScucInstance>, termination: Termination, network_outputs: ScucNetworkOutputs, device_outputs: ScucDeviceOutputs, objective: Option<f64>, ) -> Result<Self, Error>
Assemble the solution. Every stated output series must carry one row per time point of the instance’s time axis and one value per component in the corresponding instance table. Empty series remain permitted for producers that do not supply a category; GO Challenge 3 output requires every category and its writer checks that stronger requirement.
§Errors
An output series whose time axis disagrees with the instance.
Sourcepub fn instance(&self) -> &AcScucInstance
pub fn instance(&self) -> &AcScucInstance
The immutable instance this solution solves. Borrowed; never a copy.
The shared instance owner, for another solution of the same problem.
Sourcepub const fn termination(&self) -> &Termination
pub const fn termination(&self) -> &Termination
How the producing calculation ended.
Sourcepub fn with_producer(self, producer: impl Into<String>) -> Self
pub fn with_producer(self, producer: impl Into<String>) -> Self
Record the producer identity.
Sourcepub fn with_residuals(self, residuals: Residuals) -> Self
pub fn with_residuals(self, residuals: Residuals) -> Self
Record the numerical residuals.
Sourcepub const fn network_outputs(&self) -> &ScucNetworkOutputs
pub const fn network_outputs(&self) -> &ScucNetworkOutputs
The per time point network outputs.
Sourcepub const fn device_outputs(&self) -> &ScucDeviceOutputs
pub const fn device_outputs(&self) -> &ScucDeviceOutputs
The per time point device outputs.
Trait Implementations§
Source§impl Clone for AcScucSolution
impl Clone for AcScucSolution
Source§fn clone(&self) -> AcScucSolution
fn clone(&self) -> AcScucSolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more