Commit 073c6852 authored by robin.requadt's avatar robin.requadt
Browse files

Upload New File

parent b3fd9e53
from .SimpleAlgortihm import SimpleAlgorithm
import numpy as np
from scipy.linalg import norm
from proxtoolbox import ProxOperators
class GRAAL_objective(SimpleAlgorithm):
def __init__(self,config):
"""
Parameters
----------
config : dict
Dictionary containing the problem configuration.
"""
if 'Fx1' not in config:
self.bool = False
else:
self.Fx1 = config['Fx1']
self.bool = True
def evaluate(self, u):
if self.bool == False:
objValue = 999
else:
objValue = norm(self.Fx1)
return objValue
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment